Commit 98550c51 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

slapos_web_deploy: imt_generic_vm_bootstrap doesn't fail if cron is not present

parent 7e33b4fc
Pipeline #20189 failed with stage
in 0 seconds
...@@ -29,7 +29,6 @@ ansible-playbook imt-vm-bootstrap.yml -i hosts --connection=local ...@@ -29,7 +29,6 @@ ansible-playbook imt-vm-bootstrap.yml -i hosts --connection=local
# Check if playbook has been correctly extracted # Check if playbook has been correctly extracted
ANSIBLE_CRON_FILE="/etc/cron.d/ansible-vm-bootstrap"
COUNT=$(ls /opt/slapos.playbook | wc -l) COUNT=$(ls /opt/slapos.playbook | wc -l)
if [[ ! $COUNT -gt 1 ]] if [[ ! $COUNT -gt 1 ]]
then then
...@@ -38,10 +37,8 @@ then ...@@ -38,10 +37,8 @@ then
exit 1 exit 1
fi fi
# check if Ansible cron task was added # check if Ansible script was added
if [[ ! -s "$ANSIBLE_CRON_FILE" ]] ANSIBLE_RUN_SCRIPT="/usr/local/bin/vm-bootstrap-update"
then [ -s "$ANSIBLE_RUN_SCRIPT" ] || exit 1
exit 1
fi
exit 0 exit 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment