2021-10-10 07:23:49 +02:00
|
|
|
---
|
2021-08-13 10:05:57 +02:00
|
|
|
|
|
|
|
- name: Include new vars in matrix_vars.yml
|
|
|
|
include_vars:
|
|
|
|
file: '{{ awx_cached_matrix_vars }}'
|
2022-02-05 22:32:54 +02:00
|
|
|
no_log: true
|
2021-08-13 10:05:57 +02:00
|
|
|
|
2022-02-05 22:32:54 +02:00
|
|
|
- name: If include_vars succeeds overwrite the old matrix_vars.yml
|
2021-08-13 10:05:57 +02:00
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
shell: "cp {{ awx_cached_matrix_vars }} /var/lib/awx/projects/clients/{{ member_id }}/{{ subscription_id }}/matrix_vars.yml && rm {{ awx_cached_matrix_vars }}"
|
|
|
|
|
|
|
|
- name: Copy new 'matrix_vars.yml' to target machine
|
|
|
|
copy:
|
|
|
|
src: '/var/lib/awx/projects/clients/{{ member_id }}/{{ subscription_id }}/matrix_vars.yml'
|
|
|
|
dest: '/matrix/awx/matrix_vars.yml'
|
|
|
|
mode: '0660'
|