Fix the repo key name. Add the task that installs the pkg.
This commit is contained in:
parent
9025f7fb20
commit
9b771e1e79
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue