updated nginx state
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2022-11-08 11:10:53 +01:00
parent c96b8baed9
commit 201263a0af

View File

@ -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: