Commit 5079f51d by Han Su Kim

Merge pull request #1222 from edx/han/backup-server-vars

Pulling out backup server-var.yml
parents 96178e82 8990be4c
...@@ -34,16 +34,6 @@ ...@@ -34,16 +34,6 @@
dest={{ COMMON_CFG_DIR }}/playbooks dest={{ COMMON_CFG_DIR }}/playbooks
state=link 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_var_file_exists.stat.exists
- name: dump all vars to yaml - name: dump all vars to yaml
template: src=dumpall.yml.j2 dest={{ edx_ansible_var_file }} mode=0600 template: src=dumpall.yml.j2 dest={{ edx_ansible_var_file }} mode=0600
when: EDX_ANSIBLE_DUMP_VARS when: EDX_ANSIBLE_DUMP_VARS
......
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