Merge pull request #135 from aboe76/nginx_ng_listen
change watch to listen so it will only trigger a refresh of the service at the end
This commit is contained in:
commit
3c6f0e343e
@ -13,7 +13,7 @@ include:
|
||||
extend:
|
||||
nginx_service:
|
||||
service:
|
||||
- watch:
|
||||
- listen:
|
||||
- file: nginx_config
|
||||
- require:
|
||||
- file: nginx_config
|
||||
|
@ -23,7 +23,7 @@ nginx_service_reload:
|
||||
- reload: True
|
||||
- use:
|
||||
- service: nginx_service
|
||||
- watch:
|
||||
- listen:
|
||||
{{ file_requisites(server_states) }}
|
||||
- require:
|
||||
{{ file_requisites(server_states) }}
|
||||
|
@ -30,7 +30,7 @@ nginx_service:
|
||||
{% else %}
|
||||
- sls: nginx.ng.pkg
|
||||
{% endif %}
|
||||
- watch:
|
||||
- listen:
|
||||
{% if nginx.install_from_source %}
|
||||
- cmd: nginx_install
|
||||
{% else %}
|
||||
|
Loading…
Reference in New Issue
Block a user