Implemented suggestions from Slavi

This commit is contained in:
Charles Wright
2022-08-05 09:59:35 -05:00
parent dffa91ec8e
commit 47caba38fb
4 changed files with 23 additions and 25 deletions

View File

@ -1,5 +1,23 @@
---
- name: Ensure Conduit config path exists
file:
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
file:
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

View File

@ -4,7 +4,7 @@
tags:
- always
- import_tasks: "{{ role_path }}/tasks/setup_conduit.yml"
- import_tasks: "{{ role_path }}/tasks/conduit/setup.yml"
when: run_setup|bool
tags:
- setup-all

View File

@ -1,20 +0,0 @@
---
- name: Ensure Conduit config path exists
file:
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
file:
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.yml"