Commit ed84cc3e authored by Kristopher Ruzic's avatar Kristopher Ruzic

ansible handles copying and fixed startup script

parent 9a580929
......@@ -20,6 +20,16 @@
- name: Add to rc.local
shell: sed -i -e '$i \bash /usr/local/bin/erp5-startup &\n' /etc/rc.local
when: grep -Fxq "/usr/local/bin/erp5-startup" /etc/rc.local == 0
- name: Move playbooks to permanent location
shell: cp
- name: Get slapos.playbook directory name
shell: cd /tmp/tmpplaybookerp5-standalone.*/slapos.playbook.git/playbook/; echo $(pwd)/
register: tmp_dir
- name: Check if /opt/slapos.playbook already exists
stat: path=/opt/slapos.playbook/
register: playbook_state
- name: Copy slapos.playbook
copy: src={{ tmp_dir.stdout }} dest=/opt/slapos.playbook/
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