Remove non essential function
This commit is contained in:
parent
25586dc7af
commit
94c7a2ef01
|
@ -3,13 +3,6 @@ export RUNNING="/dev/shm/ansible_is_running"
|
||||||
export HOOK="/dev/shm/ansible-hook-last-run"
|
export HOOK="/dev/shm/ansible-hook-last-run"
|
||||||
export SCHED="/dev/shm/ansible_scheduler"
|
export SCHED="/dev/shm/ansible_scheduler"
|
||||||
|
|
||||||
ansible_is_running()
|
|
||||||
{
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
# sets ansible scheduling
|
# sets ansible scheduling
|
||||||
touch $SCHED
|
touch $SCHED
|
||||||
|
|
||||||
|
@ -17,10 +10,12 @@ if [ -f $RUNNING ]; then
|
||||||
echo "Ansible is currently running."
|
echo "Ansible is currently running."
|
||||||
else
|
else
|
||||||
touch $RUNNING
|
touch $RUNNING
|
||||||
|
cd /var/thunix/ansible
|
||||||
while [ -f $SCHED ]
|
while [ -f $SCHED ]
|
||||||
do
|
do
|
||||||
rm $SCHED
|
rm $SCHED
|
||||||
ansible_is_running
|
/usr/bin/git pull
|
||||||
|
/usr/local/bin/ansible-playbook -i /var/thunix/ansible/hosts /var/thunix/ansible/site.yml -u root
|
||||||
touch $HOOK
|
touch $HOOK
|
||||||
done
|
done
|
||||||
rm $RUNNING
|
rm $RUNNING
|
||||||
|
|
Loading…
Reference in New Issue