Commit 96f9d021 by Łukasz Nowak

playbook: Use copy module instead of shell+echo

It is ansible standard and allows to set file mode.
1 parent 8d126cdb
......@@ -5,7 +5,7 @@
include_vars: erp5-common.yml
- name: Store public IPv4 for other scripts
shell: echo "{{ ansible_default_ipv4.address }}" > /tmp/playbook-public-ipv4
copy: content="{{ ansible_default_ipv4.address }}" dest=/tmp/playbook-public-ipv4 mode=0644
- name: create instance request script
template: src={{ request_instance_template }} dest=/tmp/playbook-request-{{ playbook_name }} mode=0700
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!