dont run booststrap-salt if the proper version is installed

This commit is contained in:
m0duspwnens committed 2020-07-29 13:39:55 -04:00
1 parent b9d0bd86ca
commit 0de6e86cdb
1 file changed
+6 -1
+6 -1
View File
@@ -5,4 +5,9 @@
install_salt_minion:
cmd.run:
- name: yum versionlock delete "salt-*" && sh bootstrap-salt.sh -F -x python3 stable {{ saltversion }} && yum versionlock add "salt-*"
{% if grains.saltversion != saltversion %}
- name: yum versionlock delete "salt-*" && sh bootstrap-salt.sh -F -x python3 stable {{ saltversion }} && yum versionlock add "salt-*"
{% else %}
- name: echo 'Already running Salt Minon version {{ saltversion }}'
{% endif %}