Servers config should require available/enabled dirs

This commit is contained in:
Andres Montalban 2017-12-26 19:37:01 -03:00
parent cb938864f1
commit dabbc99cc1
2 changed files with 5 additions and 1 deletions

View File

@ -145,7 +145,9 @@
'disabled_postfix': '.disabled',
'symlink_opts': {},
'rename_opts': {},
'managed_opts': {},
'managed_opts': {
'makedirs': True,
},
'dir_opts': {
'makedirs': True,
},

View File

@ -112,6 +112,8 @@ nginx_server_available_dir:
- name: {{ server_curpath(server) }}
- source: {{ source_path }}
- template: jinja
- require_in:
- service: nginx_service
{% if 'source_path' not in settings.config %}
- context:
config: {{ settings.config|json() }}