24 lines
587 B
YAML
24 lines
587 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: Copy settings.yml and limiter.toml to project directory
|
||
|
copy:
|
||
|
src: "{{ role_path }}/files/"
|
||
|
dest: "{{ project_dir }}"
|
||
|
owner: "{{ host_uid }}"
|
||
|
group: "{{ host_uid }}"
|
||
|
mode: '644'
|