mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-01-24 13:40:17 +00:00
No need to rm the file, as systemd looks for state change
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user