Commit 7e99c993 authored by Alain Takoudjou's avatar Alain Takoudjou

playbook vm-boostrap: add PATH env variable to cron task

parent e540d5ec
...@@ -19,6 +19,11 @@ ...@@ -19,6 +19,11 @@
job="WAIT_TIME=10 bash -lc /usr/local/bin/vm-bootstrap-update >> /var/log/vm-bootstrap.log" job="WAIT_TIME=10 bash -lc /usr/local/bin/vm-bootstrap-update >> /var/log/vm-bootstrap.log"
cron_file=ansible-vm-bootstrap user="root" cron_file=ansible-vm-bootstrap user="root"
- name: Add PATH env variable to cron
lineinfile: dest=/etc/cron.d/ansible-vm-bootstrap
line=PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
insertbefore=BOF state=present
- name: Check if /opt/slapos.playbook already exists - name: Check if /opt/slapos.playbook already exists
file: path=/opt/slapos.playbook/ state=directory file: path=/opt/slapos.playbook/ state=directory
......
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