mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-12 08:43:55 +02:00
13 lines
500 B
YAML
13 lines
500 B
YAML
|
|
- name: Collect current datetime
|
|
set_fact:
|
|
awx_datetime: "{{ lookup('pipe', 'date +%Y-%m-%d_%H:%M') }}"
|
|
|
|
- name: Create cached matrix_vars.yml file location
|
|
set_fact:
|
|
awx_cached_matrix_vars: '/var/lib/awx/projects/clients/{{ member_id }}/{{ subscription_id }}/matrix_vars_{{ awx_datetime }}.yml'
|
|
|
|
- name: Create cached matrix_vars.yml
|
|
delegate_to: 127.0.0.1
|
|
shell: "cp /var/lib/awx/projects/clients/{{ member_id }}/{{ subscription_id }}/matrix_vars.yml {{ awx_cached_matrix_vars }}"
|