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

Use lineinfile properly :)

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