2017-07-31 22:07:30 +02:00
|
|
|
---
|
|
|
|
|
2017-09-11 22:50:14 +02:00
|
|
|
- name: Ensure Matrix base path exists
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
2019-01-14 14:28:37 +01:00
|
|
|
mode: "{{ matrix_base_data_path_mode }}"
|
2017-09-11 22:50:14 +02:00
|
|
|
owner: "{{ matrix_user_username }}"
|
2020-05-01 19:59:32 +02:00
|
|
|
group: "{{ matrix_user_groupname }}"
|
2017-09-11 22:50:14 +02:00
|
|
|
with_items:
|
2017-10-24 06:01:11 +02:00
|
|
|
- "{{ matrix_base_data_path }}"
|
2018-08-08 07:23:36 +02:00
|
|
|
|
2020-06-13 06:50:56 +02:00
|
|
|
- name: Preserve vars.yml on the server for easily restoring if it gets lost later on
|
|
|
|
copy:
|
2020-06-14 09:00:22 +02:00
|
|
|
src: "{{ matrix_vars_yml_snapshotting_src }}"
|
2020-06-13 06:50:56 +02:00
|
|
|
dest: "{{ matrix_base_data_path }}/vars.yml"
|
|
|
|
owner: "{{ matrix_user_username }}"
|
|
|
|
group: "{{ matrix_user_groupname }}"
|
|
|
|
mode: '0660'
|
2020-06-14 09:00:22 +02:00
|
|
|
when: "matrix_vars_yml_snapshotting_enabled|bool"
|
2020-06-13 06:50:56 +02:00
|
|
|
|
2020-08-02 20:54:13 +02:00
|
|
|
- name: Ensure Matrix network is created in Docker
|
|
|
|
docker_network:
|
|
|
|
name: "{{ matrix_docker_network }}"
|
|
|
|
driver: bridge
|
2018-11-28 11:02:51 +01:00
|
|
|
|
|
|
|
- name: Ensure matrix-remove-all script created
|
|
|
|
template:
|
|
|
|
src: "{{ role_path }}/templates/usr-local-bin/matrix-remove-all.j2"
|
2020-03-24 19:27:58 +01:00
|
|
|
dest: "{{ matrix_local_bin_path }}/matrix-remove-all"
|
2018-11-28 11:02:51 +01:00
|
|
|
mode: 0750
|