2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-14 17:24:04 +00:00
bench/playbooks/roles/nginx/tasks/setup-Debian.yml
2019-12-18 14:14:12 +05:30

19 lines
666 B
YAML

---
- name: Add nginx apt repository key for Debian < 8
apt_key:
url: http://nginx.org/keys/nginx_signing.key
state: present
when: ansible_distribution == 'Debian' and ansible_distribution_version is version_compare('8', 'lt')
- name: Add nginx apt repository for Debian < 8
apt_repository:
repo: 'deb [arch=amd64,i386] http://nginx.org/packages/debian/ {{ ansible_distribution_release }} nginx'
state: present
when: ansible_distribution == 'Debian' and ansible_distribution_version is version_compare('8', 'lt')
- name: Ensure nginx is installed.
apt:
pkg: nginx
state: present
default_release: "{{ nginx_default_release }}"