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