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.
 
 

16 lines
587 B

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