Commit 508ec3a3 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

Removing EDX_ANSIBLE_DUMP_VARS from create backup copy

Using file instead of copy module

using copy / backup module

Adding back logic to check if file exists

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

Removing EDX_ANSIBLE_DUMP_VARS from create backup copy

Using file instead of copy module

using copy / backup module

Adding back logic to check if file exists

Logic to make sure that backup of server-var.yml works
parent 96178e82
......@@ -40,8 +40,8 @@
- name: create backup of server vars
copy: >
src={{ edx_ansible_var_file }}
dest={{ edx_ansible_var_file }}.old
path={{ edx_ansible_var_file }}.old
backup=yes
when: edx_ansible_var_file_exists.stat.exists
- name: dump all vars to yaml
......
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