Data directories when the user is pre existing.
This commit is contained in:
parent
c1f00a6528
commit
2ee566b187
|
@ -7,6 +7,14 @@
|
|||
- name: Create the gitea directory tree
|
||||
file: dest={{ gitea_data_dir }}/{{ item }} state=directory owner={{ gitea_user }} group={{ gitea_group }}
|
||||
with_items: '{{ gitea_data_subdirs }}'
|
||||
when: gitea_create_service_user
|
||||
|
||||
- name: Create the gitea subdirs when we are using a pre existing user
|
||||
become: True
|
||||
become_user: '{{ gitea_user }}'
|
||||
file: dest={{ gitea_data_dir }}/{{ item }} state=directory
|
||||
with_items: '{{ gitea_data_subdirs }}'
|
||||
when: not gitea_create_service_user
|
||||
|
||||
- name: Create the gitea conf directory
|
||||
file: dest={{ gitea_conf_dir }} state=directory owner=root group={{ gitea_group }} mode=0750
|
||||
|
|
Loading…
Reference in New Issue