diff --git a/salt/api.sls b/salt/api.sls index 812f243..e6b387e 100644 --- a/salt/api.sls +++ b/salt/api.sls @@ -12,5 +12,7 @@ salt-api: - name: {{ salt_settings.api_service }} - require: - service: {{ salt_settings.master_service }} +{% if salt_settings.install_packages %} - watch: - - pkg: salt-master + - pkg: salt-api +{% endif %}