瀏覽代碼

fix(servers_config): fixup 05994e1

tags/v2.6.2
Tobias Jungel 3 年之前
父節點
當前提交
c03729ae32
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      nginx/servers_config.sls

+ 2
- 1
nginx/servers_config.sls 查看文件

{{ 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 }}:
- unless: - unless:
- test -e {{ server_curpath(server) }} - test -e {{ server_curpath(server) }}
{% endif %} {% endif %}
{% do server_states.append(conf_state_id) %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% do server_states.append(conf_state_id) %}


{% if settings.enabled != None %} {% if settings.enabled != None %}
{% set status_state_id = 'server_state_' ~ loop.index0 %} {% set status_state_id = 'server_state_' ~ loop.index0 %}

Loading…
取消
儲存