Fix the repo key name. Add the task that installs the pkg.

This commit is contained in:
Andrea Dell'Amico 2024-01-11 16:51:30 +01:00
parent 9025f7fb20
commit 9b771e1e79
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
---
grafana_repo_key_url: https://apt.grafana.com/gpg.key
grafana_repo_key_file: /etc/apt/keyrings/grafana.gpg
grafana_repo_key_file: /etc/apt/keyrings/grafana.asc
grafana_repo_url: "https://apt.grafana.com"
grafana_repo_components:
- main

View File

@ -39,7 +39,6 @@
group: root
mode: "0644"
tags: [grafana, grafana_repo_key]
- name: Install the grafana repository for Ubuntu
ansible.builtin.deb822_repository:
name: grafana-com
@ -50,7 +49,11 @@
signed_by: "{{ grafana_repo_key_file }}"
state: present
enabled: true
- name: Install the grafana packages
ansible.builtin.apt:
pkg: "{{ grafana_packages }}"
cache_valid_time: 1800
state: "{{ grafana_pkg_state }}"
- name: Basic grafana configuration
community.general.ini_file:
path: /etc/grafana/grafana.ini