Changed ansible-pull only to apply modifications if repo is changed.

This commit is contained in:
Emiliano Vavassori 2015-09-23 23:00:33 +02:00
parent 0832b8ea19
commit dca18c85bd
1 changed files with 1 additions and 1 deletions

View File

@ -12,5 +12,5 @@ playbook=local.yml
vaultpassfile=$(/var/lib/{{ ansible_local.domain.domainfull }}/bin/getvaultpass.py)
ansible-pull --accept-host-key -d "${repo}" -U "${url}" -C "${branch}" "${playbook}" --vault-password-file "${vaultpassfile}" $@
ansible-pull --only-if-changed --accept-host-key -d "${repo}" -U "${url}" -C "${branch}" "${playbook}" --vault-password-file "${vaultpassfile}" $@
rm -f "${vaultpassfile}"