matrix-docker-ansible-deploy/roles/matrix-awx/tasks/import_awx.yml

19 lines
474 B
YAML
Raw Normal View History

2021-02-20 09:19:17 +00:00
- name: Ensure /matrix/awx is empty
shell: rm -r /matrix/awx/*
2021-03-14 06:35:38 +00:00
ignore_errors: yes
2021-02-20 09:19:17 +00:00
- name: Ensure /matrix/synapse is empty
shell: rm -r /matrix/synapse/*
2021-03-14 06:35:38 +00:00
ignore_errors: yes
2021-02-20 09:19:17 +00:00
2021-03-14 06:35:38 +00:00
- name: Extract from /chroot/export
shell: tar -xvzf /chroot/export/matrix.tar.gz -C /matrix/
2021-02-20 09:19:17 +00:00
- name: Ensure correct ownership of /matrix/awx
shell: chown -R matrix:matrix /matrix/awx
- name: Ensure correct ownership of /matrix/synapse
shell: chown -R matrix:matrix /matrix/synapse