This commit is contained in:
parent
c96b8baed9
commit
201263a0af
@ -4,7 +4,6 @@
|
||||
|
||||
{%- for key, value in users.items() %}
|
||||
{%- if value.state == 'present' %}
|
||||
|
||||
nginx-auth-present-{{ key }}:
|
||||
webutil.user_exists:
|
||||
- name: {{ key }}
|
||||
@ -14,7 +13,6 @@ nginx-auth-present-{{ key }}:
|
||||
- htpasswd_file: {{ nginx.config.dir }}/auth/htpasswd
|
||||
- require:
|
||||
- file: nginx-config-dir-auth
|
||||
|
||||
{%- else %}
|
||||
nginx-auth-absent-{{ key }}:
|
||||
webutil.user_absent:
|
||||
|
Loading…
Reference in New Issue
Block a user