Skip to content

Commit 5393a78

Browse files
fix: compatibility with Debian 13 (trixie)
apt-key was depricated for years and has since been removed
1 parent 5271d0c commit 5393a78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/keys/setup-keys.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
when: ansible_facts['os_family'] != 'Alpine'
1919

2020
- name: (Debian/Ubuntu) Add NGINX signing key
21-
ansible.builtin.apt_key:
22-
id: 8540A6F18833A80E9C1653A42FD21310B49F6B46
23-
keyring: /usr/share/keyrings/nginx-archive-keyring.gpg
21+
ansible.builtin.get_url:
2422
url: "{{ keysite }}"
23+
dest: /usr/share/keyrings/nginx-archive-keyring.gpg
24+
checksum: sha256:55385da31d198fa6a5012d40ae98ecb272a6c4e8fffffba94719ffd3e87de37a
2525
when: ansible_facts['os_family'] == 'Debian'
2626

2727
- name: (Red Hat/SLES OSs) Add NGINX signing key

0 commit comments

Comments
 (0)