Commit 8df855dc authored by Kristopher Ruzic's avatar Kristopher Ruzic

Change to use lineinfile,

parent 9b49efa4
......@@ -19,7 +19,7 @@
copy: src=erp5-startup dest=/usr/local/bin/erp5-startup mode=755
- name: Add to rc.local
shell: sed -i -e '$i \bash /usr/local/bin/erp5-startup &\n' /etc/rc.local
lineinfile: dest=/etc/rc.local insertbefore=BOF line='bash /usr/local/bin/erp5-startup &'
when: grep -Fxq "/usr/local/bin/erp5-startup" /etc/rc.local == 0
- name: Get slapos.playbook directory name
......@@ -32,4 +32,4 @@
- name: Copy slapos.playbook
copy: src={{ tmp_dir.stdout }} dest=/opt/slapos.playbook/
when: playbook_state.stat.exists == False
when: playbook_state.stat.exists == False
\ No newline at end of file
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