Don't use apt-key anymore, since it's deprecated
This commit is contained in:
parent
efc72f70f6
commit
38fc33ce70
|
@ -6,22 +6,25 @@
|
|||
become: true
|
||||
|
||||
- name: make sure NGINX signing key is added
|
||||
ansible.builtin.apt_key:
|
||||
ansible.builtin.get_url:
|
||||
url: https://nginx.org/keys/nginx_signing.key
|
||||
state: present
|
||||
dest: /etc/apt/trusted.gpg.d/nginx.asc
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
become: true
|
||||
notify: apt-get update
|
||||
|
||||
- name: make sure NGINX APT repository is added
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb https://nginx.org/packages/debian/ {{ ansible_distribution_release }} nginx"
|
||||
repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/nginx.asc] https://nginx.org/packages/debian/ {{ ansible_distribution_release }} nginx"
|
||||
state: present
|
||||
become: true
|
||||
notify: apt-get update
|
||||
|
||||
- name: make sure NGINX APT source repository is added
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "deb-src https://nginx.org/packages/debian/ {{ ansible_distribution_release }} nginx"
|
||||
repo: "deb-src [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/nginx.asc] https://nginx.org/packages/debian/ {{ ansible_distribution_release }} nginx"
|
||||
state: present
|
||||
become: true
|
||||
notify: apt-get update
|
||||
|
|
Loading…
Reference in a new issue