ansible-role-nginx/tasks/amplify/setup-debian.yml

18 lines
682 B
YAML
Raw Permalink Normal View History

---
2020-09-19 17:32:17 +02:00
- name: (Debian/Ubuntu) Add NGINX Amplify agent repository
apt_repository:
filename: nginx-amplify
repo: "deb [arch=amd64] https://packages.amplify.nginx.com/{{ ansible_facts['distribution'] | lower }}/
{{ ansible_facts['distribution_release'] | lower }} amplify-agent"
update_cache: true
mode: 0644
2020-09-15 21:27:06 +02:00
when: ansible_facts['distribution_release'] != "focal"
2020-09-19 17:32:17 +02:00
- name: (Ubuntu 20.04) Add NGINX Amplify agent repository
apt_repository:
filename: nginx-amplify
repo: deb [arch=amd64] https://packages.amplify.nginx.com/py3/ubuntu focal amplify-agent
update_cache: true
mode: 0644
2020-09-15 21:27:06 +02:00
when: ansible_facts['distribution_release'] == "focal"