Commit 8d126cdb authored by Łukasz Nowak's avatar Łukasz Nowak

playbook: Fix mode setting

As explained in http://docs.ansible.com/ansible/latest/template_module.html
"Leaving off the leading zero will likely have unexpected results.", so fix it.
parent abf455bc
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
shell: echo "{{ ansible_default_ipv4.address }}" > /tmp/playbook-public-ipv4 shell: echo "{{ ansible_default_ipv4.address }}" > /tmp/playbook-public-ipv4
- name: create instance request script - name: create instance request script
template: src={{ request_instance_template }} dest=/tmp/playbook-request-{{ playbook_name }} mode=700 template: src={{ request_instance_template }} dest=/tmp/playbook-request-{{ playbook_name }} mode=0700
- name: Supply and Request ERP5 Cluster - name: Supply and Request ERP5 Cluster
cron: cron:
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
job="/bin/echo 'execfile(\"/tmp/playbook-request-{{ playbook_name }}\")' | /usr/bin/slapos console > /dev/null 2>&1" job="/bin/echo 'execfile(\"/tmp/playbook-request-{{ playbook_name }}\")' | /usr/bin/slapos console > /dev/null 2>&1"
- name: create frontend request script - name: create frontend request script
template: src={{ request_frontend_template }} dest=/tmp/playbook-request-frontend-{{ playbook_name }} mode=700 template: src={{ request_frontend_template }} dest=/tmp/playbook-request-frontend-{{ playbook_name }} mode=0700
- name: Supply and Request ERP5 Frontend - name: Supply and Request ERP5 Frontend
cron: cron:
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
job="/bin/echo 'execfile(\"/tmp/playbook-request-frontend-{{ playbook_name }}\")' | /usr/bin/slapos console > /dev/null 2>&1" job="/bin/echo 'execfile(\"/tmp/playbook-request-frontend-{{ playbook_name }}\")' | /usr/bin/slapos console > /dev/null 2>&1"
- name: Create firewall script - name: Create firewall script
template: src={{ firewall_setup_template }} dest=/tmp/playbook-firewall-setup-{{ playbook_name }} mode=700 template: src={{ firewall_setup_template }} dest=/tmp/playbook-firewall-setup-{{ playbook_name }} mode=0700
- name: Setup firewall - name: Setup firewall
cron: cron:
...@@ -41,10 +41,10 @@ ...@@ -41,10 +41,10 @@
job="/tmp/playbook-firewall-setup-{{ playbook_name }} > /dev/null 2>&1" job="/tmp/playbook-firewall-setup-{{ playbook_name }} > /dev/null 2>&1"
- name: create erp5-show - name: create erp5-show
copy: src=erp5-show dest=/usr/local/bin/erp5-show mode=755 copy: src=erp5-show dest=/usr/local/bin/erp5-show mode=0755
- name: Add startup script - name: Add startup script
template: src=start-script.j2 dest=/usr/local/bin/{{ playbook_name }}-startup mode=755 template: src=start-script.j2 dest=/usr/local/bin/{{ playbook_name }}-startup mode=0755
- name: Include on reboot - name: Include on reboot
cron: cron:
......
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