mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-11-05 03:55:38 +00:00
Move touch command inside the while loop
This commit is contained in:
1 parent
07fbc49188
commit
04e89eb481
1 file changed
+1
-1
@@ -9,11 +9,11 @@ touch $SCHED
|
||||
if [ -f $RUNNING ]; then
|
||||
echo "Ansible is currently running."
|
||||
else
|
||||
touch $RUNNING
|
||||
cd /var/thunix/ansible
|
||||
while [ -f $SCHED ]
|
||||
do
|
||||
rm $SCHED
|
||||
touch $RUNNING
|
||||
/usr/bin/git pull
|
||||
/usr/local/bin/ansible-playbook -i /var/thunix/ansible/hosts /var/thunix/ansible/site.yml -u root
|
||||
touch $HOOK
|
||||
|
||||
Reference in new issue
Block a user