27 lines
738 B
YAML
27 lines
738 B
YAML
- name: "(Re)Create {{ project_dir }} project directory"
|
|
file:
|
|
path: "{{ project_dir }}"
|
|
state: "{{ item }}"
|
|
loop:
|
|
- absent
|
|
- directory
|
|
|
|
- name: Template docker-compose.yaml & etebase-server.ini to project directory
|
|
template:
|
|
src: "{{ item }}"
|
|
dest: "{{ project_dir }}/{{ item }}"
|
|
owner: "{{ host_uid }}"
|
|
group: "{{ host_uid }}"
|
|
mode: '644'
|
|
loop:
|
|
- docker-compose.yaml
|
|
- etebase-server.ini
|
|
|
|
- name: "Create (if not exists) directory {{ volumes['etebase_datadir'] }} & set permissions"
|
|
file:
|
|
path: "{{ volumes['etebase_datadir'] }}"
|
|
state: directory
|
|
owner: "{{ users['etebase'] + uid_shift }}"
|
|
group: "{{ users['etebase'] + uid_shift }}"
|
|
mode: '770'
|
|
become: true
|