Merge pull request #280 from toanju/fixup

fix(servers_config): fixup 05994e1
This commit is contained in:
Imran Iqbal 2021-03-30 18:52:53 +01:00 committed by GitHub
commit 4cfc9f6015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,6 +106,7 @@ nginx_server_available_dir:
{{ conf_state_id }}: {{ conf_state_id }}:
file.absent: file.absent:
- name: {{ server_curpath(server) }} - name: {{ server_curpath(server) }}
{% do server_states.append(conf_state_id) %}
{% else %} {% else %}
{% if settings.enabled == True %} {% if settings.enabled == True %}
{{ conf_state_id }}: {{ conf_state_id }}:
@ -131,9 +132,9 @@ nginx_server_available_dir:
- unless: - unless:
- test -e {{ server_curpath(server) }} - test -e {{ server_curpath(server) }}
{% endif %} {% endif %}
{% endif %}
{% endif %}
{% do server_states.append(conf_state_id) %} {% do server_states.append(conf_state_id) %}
{% endif %}
{% endif %}
{% if settings.enabled != None %} {% if settings.enabled != None %}
{% set status_state_id = 'server_state_' ~ loop.index0 %} {% set status_state_id = 'server_state_' ~ loop.index0 %}