This repository has been archived on 2023-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
max/roles/syncthing/tasks/main.yml

35 lines
960 B
YAML
Raw Normal View History

- name: Create Syncthing app directory
file:
path: /apps/syncthing
state: directory
- name: Create Syncthing configuration directory
file:
path: /apps/syncthing/config
state: directory
2022-12-01 22:05:11 +00:00
- name: Copy Syncthing private key
copy:
src: "{{ role_path }}/files/key.pem"
dest: /apps/syncthing/config/key.pem
2022-12-01 22:05:11 +00:00
- name: Copy Syncthing certificate
copy:
src: "{{ role_path }}/files/cert.pem"
dest: /apps/syncthing/config/cert.pem
- name: Copy Syncthing configuration
copy:
src: "{{ role_path }}/files/config.xml"
dest: /apps/syncthing/config/config.xml
- name: Create Syncthing data directory
file:
path: /data/syncthing
state: directory
mode: 0777
- name: Copy docker compose script
copy:
src: "{{ role_path }}/files/docker-compose.yml"
dest: /apps/syncthing/docker-compose.yml
- name: Start Docker Compose
docker_compose:
project_src: /apps/syncthing
pull: true
remove_orphans: true