17 lines
558 B
YAML
17 lines
558 B
YAML
- name: "Create {{ syncthing_project_dir }} project directory"
|
|
file:
|
|
path: "{{ syncthing_project_dir }}"
|
|
state: directory
|
|
|
|
- name: Template docker-compose.yaml to project directory
|
|
template:
|
|
src: docker-compose.yaml
|
|
dest: "{{ syncthing_project_dir }}/docker-compose.yaml"
|
|
owner: "{{ ansible_env['USER'] }}"
|
|
group: "{{ ansible_env['USER'] }}"
|
|
mode: '640'
|
|
|
|
- name: Pull/Create/Restart project services
|
|
community.docker.docker_compose:
|
|
project_src: "{{ syncthing_project_dir }}"
|
|
pull: "{{ docker_pull_images | bool }}"
|