Commit 8a0cf5ff by Han Su Kim

Moving tasks order, file has to be created first before being copied

Moving order back to before, adding a stat to check if file exists

Correcting use of stat conditional

Typo
parent f3e224f9
......@@ -34,11 +34,15 @@
dest={{ COMMON_CFG_DIR }}/playbooks
state=link
- name: check to see if server vars already exists
stat: path={{ edx_ansible_var_file }}
register: edx_ansible_var_file_exists
- name: create backup of server vars
copy: >
src={{ edx_ansible_var_file }}
dest={{ edx_ansible_var_file }}.old
when: EDX_ANSIBLE_DUMP_VARS
when: edx_ansible_var_file_exists.stat.exists or EDX_ANSIBLE_DUMP_VARS
- name: dump all vars to yaml
template: src=dumpall.yml.j2 dest={{ edx_ansible_var_file }} mode=0600
......
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