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