Move the grafana key into the default directory.

This commit is contained in:
Andrea Dell'Amico 2023-11-20 19:25:12 +01:00
parent b8e311f5f2
commit 73617dc274
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
---
grafana_repo_key: https://apt.grafana.com/gpg.key
grafana_repo: "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main"
grafana_repo: "deb [signed-by=/etc/apt/trusted.gpg.d/grafana.gpg] https://apt.grafana.com stable main"
grafana_pkg_state: latest
grafana_packages:
- grafana

View File

@ -18,7 +18,7 @@
block:
- name: Create a directory to store the repo keys
ansible.builtin.file:
dest: /etc/apt/keyrings
dest: /etc/apt/trusted.gpg.d
state: directory
mode: "0755"
owner: root
@ -26,7 +26,7 @@
- name: Install the grafana repo key
get_url:
url: "{{ grafana_repo_key }}"
dest: /etc/apt/keyrings/grafana.gpg
dest: /etc/apt/trusted.gpg.d/grafana.gpg
state: present
owner: root
group: root