Commit 6699b867 authored by Joanne Hugé's avatar Joanne Hugé

playbook/ors: set PATH in cron tasks

parent 6e1ef23f
Pipeline #23897 failed with stage
in 0 seconds
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
cron: name="Launch ors playbook every 3 hours" state=absent cron: name="Launch ors playbook every 3 hours" state=absent
- name: Install periodic cron - name: Install periodic cron
cron: name="Launch ors playbook periodically" minute="*/10" hour="*" job='cd /opt/upgrader/playbook && ansible-playbook ors.yml 2>> /opt/upgrader/latest_ors.log >> /opt/upgrader/latest_ors.log' cron: name="Launch ors playbook periodically" minute="*/10" hour="*" job='cd /opt/upgrader/playbook && PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin ansible-playbook ors.yml 2>> /opt/upgrader/latest_ors.log >> /opt/upgrader/latest_ors.log'
- name: Install reboot cron - name: Install reboot cron
cron: name="Launch ors playbook at reboot" special_time=reboot job='sleep 20 && cd /opt/upgrader/playbook && ansible-playbook ors.yml 2>> /opt/upgrader/startup_ors.log >> /opt/upgrader/startup_ors.log' cron: name="Launch ors playbook at reboot" special_time=reboot job='sleep 20 && cd /opt/upgrader/playbook && PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin ansible-playbook ors.yml 2>> /opt/upgrader/startup_ors.log >> /opt/upgrader/startup_ors.log'
- name: Install rm-tmp-lte script - name: Install rm-tmp-lte script
copy: src=rm-tmp-lte dest={{ install_folder }} owner=root mode=770 copy: src=rm-tmp-lte dest={{ install_folder }} owner=root mode=770
......
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