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