2017-08-28 15:31:54 +00:00
|
|
|
---
|
|
|
|
- name: Create Duplicati Directory
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
|
|
|
- "{{ duplicati_data_directory }}"
|
|
|
|
|
|
|
|
- name: Dupicati Docker Container
|
|
|
|
docker_container:
|
|
|
|
name: duplicati
|
|
|
|
image: linuxserver/duplicati
|
|
|
|
pull: true
|
|
|
|
ports:
|
2020-01-05 21:47:40 +00:00
|
|
|
- "{{ duplicati_port }}:8200"
|
2017-08-28 15:31:54 +00:00
|
|
|
volumes:
|
|
|
|
- "{{ duplicati_data_directory }}:/config:rw"
|
2018-04-08 22:29:25 +00:00
|
|
|
- "{{ samba_shares_root }}:/source/shares:ro"
|
|
|
|
- "{{ docker_home }}:/source/docker:ro"
|
2017-08-28 15:31:54 +00:00
|
|
|
- "/etc/timezone:/etc/timezone:ro"
|
|
|
|
restart_policy: unless-stopped
|
2018-04-08 22:29:25 +00:00
|
|
|
memory: 1g
|
2019-04-11 22:03:11 +00:00
|
|
|
labels:
|
|
|
|
traefik.backend: "duplicati"
|
|
|
|
traefik.frontend.rule: "Host:duplicati.{{ ansible_nas_domain }}"
|
|
|
|
traefik.enable: "{{ duplicati_available_externally }}"
|
2020-01-18 18:16:24 +00:00
|
|
|
traefik.port: "8200"
|