move salt_minion_service state outside jinja if

This commit is contained in:
m0duspwnens
2021-04-15 12:45:34 -04:00
parent 9d01387a04
commit 9d676efada

View File

@@ -49,9 +49,11 @@ salt_minion_service_unit_file:
- module: systemd_reload
- listen_in:
- service: salt_minion_service
{% endif %}
# this has to be outside the if statement above since there are <requisite>_in calls to this state
salt_minion_service:
service.running:
- name: salt-minion
- enable: True
{% endif %}
- onlyif: test "{{INSTALLEDSALTVERSION}}" == "{{SALTVERSION}}"