mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-27 03:53:06 +00:00
22 lines
608 B
YAML
22 lines
608 B
YAML
- name: Create Syncthing Directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- "{{ syncthing_data_directory }}"
|
|
|
|
- name: Syncthing Docker Container
|
|
docker_container:
|
|
name: syncthing
|
|
image: syncthing/syncthing:latest
|
|
pull: true
|
|
network_mode: host
|
|
volumes:
|
|
- "{{ syncthing_data_directory }}:/var/syncthing:rw"
|
|
env:
|
|
STGUIADDRESS: ""
|
|
labels:
|
|
traefik.web.frontend.rule: "Host:syncthing.{{ ansible_nas_domain }}"
|
|
traefik.enable: "{{ syncthing_available_externally }}"
|
|
traefik.port: "8384"
|
|
restart_policy: unless-stopped
|