ansible-nginx/tasks/install_Debian.yml

32 lines
999 B
YAML
Raw Normal View History

2016-01-12 00:20:42 +07:00
---
- name: FAIL | Check possible issues
fail:
msg: "This ansible version ({{ ansible_version.full}}) is not compatible with your needs (Debian Stretch + htpasswd). Please see https://github.com/HanXHX/ansible-nginx/issues/28"
when:
ansible_distribution_major_version >= 9 and
ansible_version.full | version_compare('2.3.2', 'lt') and
nginx_htpasswd | length > 0
2016-03-07 17:59:26 +07:00
- name: APT | Update cache
apt: >
update_cache=yes
cache_valid_time=3600
2016-12-08 23:34:59 +07:00
changed_when: false
- name: APT | Force OpenSSL from backports (fix dependency break)
apt: >
pkg=openssl
state=latest
default_release={{ ansible_distribution_release + '-backports' }}
when: nginx_backports
2016-01-12 00:20:42 +07:00
- name: APT | Install nginx and dependencies
apt: >
pkg={{ nginx_apt_package }}
state=present
default_release={{ ansible_distribution_release + '-backports' if nginx_backports else ansible_distribution_release }}
- name: APT | Install python-passlib
apt: pkg=python-passlib state=present