Preserve vars.yml on the server for easily restoring

Fixes #542 (Github Issues).
This commit is contained in:
Slavi Pantaleev 2020-06-13 07:50:56 +03:00
parent 967b06e932
commit 67ab7e7a1b

View file

@ -10,6 +10,14 @@
with_items:
- "{{ matrix_base_data_path }}"
- name: Preserve vars.yml on the server for easily restoring if it gets lost later on
copy:
src: "{{ inventory_dir }}/host_vars/{{ inventory_hostname }}/vars.yml"
dest: "{{ matrix_base_data_path }}/vars.yml"
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"
mode: '0660'
# `docker_network` doesn't work as expected when the given network
# is a substring of a network that already exists.
#