Commit 65885b0f authored by Kristopher Ruzic's avatar Kristopher Ruzic

Use lineinfile properly :)

parent 8df855dc
......@@ -19,8 +19,10 @@
copy: src=erp5-startup dest=/usr/local/bin/erp5-startup mode=755
- name: Add to 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
lineinfile:
dest=/etc/rc.local insertbefore=BOF
line='bash /usr/local/bin/erp5-startup &'
state=present
- name: Get slapos.playbook directory name
shell: cd /tmp/tmpplaybookerp5-standalone.*/slapos.playbook.git/playbook/; echo $(pwd)/
......@@ -32,4 +34,4 @@
- name: Copy slapos.playbook
copy: src={{ tmp_dir.stdout }} dest=/opt/slapos.playbook/
when: playbook_state.stat.exists == False
\ No newline at end of file
when: playbook_state.stat.exists == False
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