From bc9f4a7e21dfd159155b4a1a2f353ccdd6bb73b8 Mon Sep 17 00:00:00 2001 From: Ubergeek Date: Fri, 22 Mar 2019 11:53:42 +0000 Subject: [PATCH] No need to rm the file, as systemd looks for state change --- roles/common/files/ansible-run | 1 - roles/webserver/files/www-run | 1 - 2 files changed, 2 deletions(-) diff --git a/roles/common/files/ansible-run b/roles/common/files/ansible-run index dac5e15..28737e0 100644 --- a/roles/common/files/ansible-run +++ b/roles/common/files/ansible-run @@ -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 diff --git a/roles/webserver/files/www-run b/roles/webserver/files/www-run index 744ac07..a38def7 100644 --- a/roles/webserver/files/www-run +++ b/roles/webserver/files/www-run @@ -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