|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if settings.enabled != None %} |
|
|
{% if settings.enabled != None %} |
|
|
{% set status_state_id = 'server_state_' ~ loop.index0 %} |
|
|
{% set status_state_id = 'server_state_' ~ loop.index0 %} |
|
|
|
|
|
{%- set enabled_dir = path_join(server, nginx.servers.managed.get(server).get('enabled_dir', nginx.lookup.server_enabled)) -%} |
|
|
|
|
|
{%- set available_dir = path_join(server, nginx.servers.managed.get(server).get('available_dir', nginx.lookup.server_available)) -%} |
|
|
|
|
|
{%- if enabled_dir != available_dir %} |
|
|
{{ status_state_id }}: |
|
|
{{ status_state_id }}: |
|
|
{% if 'deleted' in settings and settings.deleted %} |
|
|
{% if 'deleted' in settings and settings.deleted %} |
|
|
{{ manage_status(server, False, True) }} |
|
|
{{ manage_status(server, False, True) }} |
|
|
|
|
|
|
|
|
{% if 'deleted' not in settings or ( 'deleted' in settings and settings.deleted == False ) %} |
|
|
{% if 'deleted' not in settings or ( 'deleted' in settings and settings.deleted == False ) %} |
|
|
{% do server_states.append(status_state_id) %} |
|
|
{% do server_states.append(status_state_id) %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
{%- endif %} {# enabled != available_dir #} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% endfor %} |
|
|
{% endfor %} |