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_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_url: "https://apt.grafana.com"
|
||||||
grafana_repo_components:
|
grafana_repo_components:
|
||||||
- main
|
- main
|
||||||
|
|
|
@ -39,7 +39,6 @@
|
||||||
group: root
|
group: root
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
tags: [grafana, grafana_repo_key]
|
tags: [grafana, grafana_repo_key]
|
||||||
|
|
||||||
- name: Install the grafana repository for Ubuntu
|
- name: Install the grafana repository for Ubuntu
|
||||||
ansible.builtin.deb822_repository:
|
ansible.builtin.deb822_repository:
|
||||||
name: grafana-com
|
name: grafana-com
|
||||||
|
@ -50,7 +49,11 @@
|
||||||
signed_by: "{{ grafana_repo_key_file }}"
|
signed_by: "{{ grafana_repo_key_file }}"
|
||||||
state: present
|
state: present
|
||||||
enabled: true
|
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
|
- name: Basic grafana configuration
|
||||||
community.general.ini_file:
|
community.general.ini_file:
|
||||||
path: /etc/grafana/grafana.ini
|
path: /etc/grafana/grafana.ini
|
||||||
|
|
Loading…
Reference in New Issue