dont run booststrap-salt if the proper version is installed

This commit is contained in:
m0duspwnens
2020-07-29 13:39:55 -04:00
parent b9d0bd86ca
commit 0de6e86cdb

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 %}