Removed deprecated apt_key ansible module.
authorLuke Hoersten <luke@hoersten.org>
Fri, 09 Sep 2022 11:54:48 -0500
changeset 189 3bd85e235e76
parent 188 4f2ad619134b
child 190 59bef6fbab49
Removed deprecated apt_key ansible module.
plex/tasks/main.yaml
prometheus/server/tasks/main.yaml
rpi-base/tasks/main.yaml
--- a/plex/tasks/main.yaml	Mon Sep 05 17:58:32 2022 -0500
+++ b/plex/tasks/main.yaml	Fri Sep 09 11:54:48 2022 -0500
@@ -4,7 +4,10 @@
 
 - name: add plex apt key
   become: yes
-  apt_key: url="https://downloads.plex.tv/plex-keys/PlexSign.key"
+  get_url:
+    url: "https://downloads.plex.tv/plex-keys/PlexSign.key"
+    dest: /etc/apt/trusted.gpg.d/plex.asc
+    mode: "0644"
 
 - name: add plex apt repo
   become: yes
--- a/prometheus/server/tasks/main.yaml	Mon Sep 05 17:58:32 2022 -0500
+++ b/prometheus/server/tasks/main.yaml	Fri Sep 09 11:54:48 2022 -0500
@@ -2,7 +2,10 @@
 
 - name: add grafana apt key
   become: yes
-  apt_key: url="https://packages.grafana.com/gpg.key"
+  get_url:
+    url: "https://packages.grafana.com/gpg.key"
+    dest: /etc/apt/trusted.gpg.d/grafana.asc
+    mode: "0644"
 
 - name: add grafana apt repo
   become: yes
--- a/rpi-base/tasks/main.yaml	Mon Sep 05 17:58:32 2022 -0500
+++ b/rpi-base/tasks/main.yaml	Fri Sep 09 11:54:48 2022 -0500
@@ -11,7 +11,10 @@
 
 - name: add log2ram apt key
   become: yes
-  apt_key: url="https://azlux.fr/repo.gpg.key"
+  get_url:
+    url: "https://azlux.fr/repo.gpg.key"
+    dest: /etc/apt/trusted.gpg.d/log2ram.asc
+    mode: "0644"
 
 - name: add log2ram apt repo
   become: yes