forked from thunix/ansible
No need to rm the file, as systemd looks for state change
This commit is contained in:
parent
7fe50e2efc
commit
bc9f4a7e21
|
@ -9,7 +9,6 @@ else
|
|||
cd /var/thunix/ansible
|
||||
/usr/bin/git pull
|
||||
/usr/local/bin/ansible-playbook -i /var/thunix/ansible/hosts /var/thunix/ansible/site.yml -u root
|
||||
rm /dev/shm/run-ansible
|
||||
touch /dev/shm/ansible-hook-last-run
|
||||
rm $RUNNING
|
||||
exit 0
|
||||
|
|
|
@ -8,7 +8,6 @@ else
|
|||
touch $RUNNING
|
||||
cd /var/www/thunix.cf
|
||||
/usr/bin/git pull
|
||||
rm /dev/shm/run-www
|
||||
touch /dev/shm/www-hook-last-run
|
||||
rm $RUNNING
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue