19 lines
443 B
YAML
19 lines
443 B
YAML
- name: "(Re)Create {{ project_dir }} project directory"
|
|
file:
|
|
path: "{{ project_dir }}"
|
|
state: "{{ item }}"
|
|
loop:
|
|
- absent
|
|
- directory
|
|
|
|
- name: Template docker-compose.yaml, .env & images.yml to project directory
|
|
template:
|
|
src: "{{ item }}"
|
|
dest: "{{ project_dir }}/{{ item }}"
|
|
owner: "{{ host_uid }}"
|
|
group: "{{ host_uid }}"
|
|
mode: '640'
|
|
loop:
|
|
- docker-compose.yaml
|
|
- .env
|
|
- images.yml
|