2018-09-12 23:03:20 +02:00
|
|
|
---
|
2022-02-14 16:08:33 +01:00
|
|
|
|
|
|
|
- name: (Ubuntu 20.04) Add NGINX Amplify apt key
|
|
|
|
apt_key:
|
|
|
|
url: https://nginx.org/keys/nginx_signing.key
|
|
|
|
state: present
|
|
|
|
become: true
|
|
|
|
when: ansible_facts['distribution_release'] == "focal"
|
|
|
|
|
2020-09-19 17:32:17 +02:00
|
|
|
- name: (Debian/Ubuntu) Add NGINX Amplify agent repository
|
2018-09-12 23:03:20 +02:00
|
|
|
apt_repository:
|
|
|
|
filename: nginx-amplify
|
2020-09-18 15:09:59 +02:00
|
|
|
repo: "deb [arch=amd64] https://packages.amplify.nginx.com/{{ ansible_facts['distribution'] | lower }}/
|
|
|
|
{{ ansible_facts['distribution_release'] | lower }} amplify-agent"
|
2021-06-02 17:47:44 +02:00
|
|
|
update_cache: true
|
2020-08-28 10:30:23 +02:00
|
|
|
mode: 0644
|
2020-09-15 21:27:06 +02:00
|
|
|
when: ansible_facts['distribution_release'] != "focal"
|
2020-07-28 12:26:38 +02:00
|
|
|
|
2020-09-19 17:32:17 +02:00
|
|
|
- name: (Ubuntu 20.04) Add NGINX Amplify agent repository
|
2020-07-28 12:26:38 +02:00
|
|
|
apt_repository:
|
|
|
|
filename: nginx-amplify
|
|
|
|
repo: deb [arch=amd64] https://packages.amplify.nginx.com/py3/ubuntu focal amplify-agent
|
2021-06-02 17:47:44 +02:00
|
|
|
update_cache: true
|
2020-08-28 10:30:23 +02:00
|
|
|
mode: 0644
|
2020-09-15 21:27:06 +02:00
|
|
|
when: ansible_facts['distribution_release'] == "focal"
|