--- a/prometheus/server/tasks/main.yaml Wed Oct 19 09:17:03 2022 -0500
+++ b/prometheus/server/tasks/main.yaml Fri Oct 21 21:58:58 2022 -0500
@@ -4,12 +4,12 @@
become: yes
get_url:
url: "https://packages.grafana.com/gpg.key"
- dest: /etc/apt/trusted.gpg.d/grafana.asc
+ dest: "/etc/apt/trusted.gpg.d/grafana.asc"
mode: "0644"
- name: add grafana apt repo
become: yes
- apt_repository: repo="deb https://packages.grafana.com/oss/deb stable main"
+ apt_repository: repo="deb [signed-by=/etc/apt/trusted.gpg.d/grafana.asc] https://packages.grafana.com/oss/deb stable main"
- name: install prometheus and grafana
become: yes