This role only works with Ansible 2.6+

This commit is contained in:
Emilien Mantel committed 2019-02-12 18:18:03 +01:00
1 parent a021888728
commit 91ca31e676
3 files changed
+1 -7

No files matched your search

-1
View File
@@ -12,7 +12,6 @@
htpasswd:
name: "{{ item.1.name }}"
password: "{{ item.1.password }}"
state: "{{ item.1.state | default('present') }}"
path: "{{ nginx_htpasswd_dir }}/{{ item.0.name }}"
loop: "{{ nginx_htpasswd | subelements('users') }}"
when: item.0.state is not defined or item.0.state == 'present'