2024-04-20 12:17:10 +02:00
|
|
|
- name: "(Re)Create {{ project_dir }} project directory"
|
|
|
|
file:
|
|
|
|
path: "{{ project_dir }}"
|
|
|
|
state: "{{ item }}"
|
|
|
|
loop:
|
|
|
|
- absent
|
|
|
|
- directory
|
|
|
|
|
2024-07-02 16:25:11 +02:00
|
|
|
- name: Template docker-compose.yaml & services.toml to project directory
|
2024-04-20 12:17:10 +02:00
|
|
|
template:
|
2024-07-02 16:25:11 +02:00
|
|
|
src: "{{ item }}"
|
|
|
|
dest: "{{ project_dir }}/{{ item }}"
|
2024-04-20 12:17:10 +02:00
|
|
|
owner: "{{ host_uid }}"
|
|
|
|
group: "{{ host_uid }}"
|
2024-07-02 16:25:11 +02:00
|
|
|
mode: '644'
|
|
|
|
loop:
|
|
|
|
- docker-compose.yaml
|
|
|
|
- services.toml
|