Only watch salt-api package if install_packages=true
Also watch salt-api pkg instead of salt-master one.
This commit is contained in:
parent
03464977dc
commit
02f7b279a1
@ -12,5 +12,7 @@ salt-api:
|
|||||||
- name: {{ salt_settings.api_service }}
|
- name: {{ salt_settings.api_service }}
|
||||||
- require:
|
- require:
|
||||||
- service: {{ salt_settings.master_service }}
|
- service: {{ salt_settings.master_service }}
|
||||||
|
{% if salt_settings.install_packages %}
|
||||||
- watch:
|
- watch:
|
||||||
- pkg: salt-master
|
- pkg: salt-api
|
||||||
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user