matrix-docker-ansible-deploy/roles/matrix-conduit/tasks/conduit/setup.yml

26 lines
748 B
YAML
Raw Normal View History

---
2022-08-05 14:59:35 +00:00
- name: Ensure Conduit config path exists
2022-08-05 18:44:56 +00:00
ansible.builtin.file:
2022-08-05 14:59:35 +00:00
path: "{{ matrix_conduit_config_path }}"
state: directory
mode: 0750
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"
when: "matrix_conduit_enabled|bool"
- name: Ensure Conduit data path exists
2022-08-05 18:44:56 +00:00
ansible.builtin.file:
2022-08-05 14:59:35 +00:00
path: "{{ matrix_conduit_data_path }}"
state: directory
mode: 0770
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"
when: "matrix_conduit_enabled|bool"
- import_tasks: "{{ role_path }}/tasks/conduit/setup_install.yml"
when: matrix_conduit_enabled|bool
- import_tasks: "{{ role_path }}/tasks/conduit/setup_uninstall.yml"
when: "not matrix_conduit_enabled|bool"