Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
590 B

  1. ---
  2. - name: Include new vars in matrix_vars.yml
  3. include_vars:
  4. file: '{{ awx_cached_matrix_vars }}'
  5. no_log: true
  6. - name: If include_vars succeeds overwrite the old matrix_vars.yml
  7. delegate_to: 127.0.0.1
  8. shell: "cp {{ awx_cached_matrix_vars }} /var/lib/awx/projects/clients/{{ member_id }}/{{ subscription_id }}/matrix_vars.yml && rm {{ awx_cached_matrix_vars }}"
  9. - name: Copy new 'matrix_vars.yml' to target machine
  10. copy:
  11. src: '/var/lib/awx/projects/clients/{{ member_id }}/{{ subscription_id }}/matrix_vars.yml'
  12. dest: '/matrix/awx/matrix_vars.yml'
  13. mode: '0660'