Elegent fail for htpasswd+stretch (#28 related)

This commit is contained in:
Emilien Mantel
2017-07-27 11:50:48 +02:00
parent adf53b0d95
commit 50e25d45b8
4 changed files with 17 additions and 3 deletions

View File

@@ -1,5 +1,13 @@
---
- 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
- name: APT | Update cache
apt: >
update_cache=yes