|
|
|
|
|
|
|
|
file.directory: |
|
|
file.directory: |
|
|
{{ sls_block(nginx.servers.dir_opts) }} |
|
|
{{ sls_block(nginx.servers.dir_opts) }} |
|
|
- name: {{ nginx.lookup.server_enabled }} |
|
|
- name: {{ nginx.lookup.server_enabled }} |
|
|
|
|
|
- clean: {{ nginx.servers.purge_servers_config }} |
|
|
|
|
|
|
|
|
# If enabled and available are not the same, create available |
|
|
# If enabled and available are not the same, create available |
|
|
{% if nginx.lookup.server_enabled != nginx.lookup.server_available -%} |
|
|
{% if nginx.lookup.server_enabled != nginx.lookup.server_available -%} |
|
|
|
|
|
|
|
|
file.directory: |
|
|
file.directory: |
|
|
{{ sls_block(nginx.servers.dir_opts) }} |
|
|
{{ sls_block(nginx.servers.dir_opts) }} |
|
|
- name: {{ nginx.lookup.server_available }} |
|
|
- name: {{ nginx.lookup.server_available }} |
|
|
|
|
|
- clean: {{ nginx.servers.purge_servers_config }} |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
# Manage the actual server files |
|
|
# Manage the actual server files |