vps/roles/syncthing/tasks/main.yml
2024-02-17 19:01:04 +01:00

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 }}"