2018-12-28 01:00:51 +00:00
|
|
|
---
|
|
|
|
- name: Time Machine Directories
|
|
|
|
file:
|
|
|
|
path: "{{ timemachine_data_directory }}"
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: Time Machine Docker Container
|
|
|
|
docker_container:
|
|
|
|
name: timemachine
|
2019-01-10 14:38:10 +00:00
|
|
|
image: mbentley/timemachine:latest
|
2018-12-28 01:00:51 +00:00
|
|
|
pull: true
|
|
|
|
ports:
|
|
|
|
- "548:548"
|
|
|
|
env:
|
|
|
|
VOLUME_SIZE_LIMIT: "{{ timemachine_volume_size_limit }}"
|
|
|
|
PASSWORD: "{{ timemachine_password }}"
|
|
|
|
SHARE_NAME: "{{ timemachine_share_name }}"
|
|
|
|
LOG_LEVEL: "{{ timemachine_log_level }}"
|
|
|
|
volumes:
|
|
|
|
- "{{ timemachine_data_directory }}/data:/opt/timemachine"
|
|
|
|
- "{{ timemachine_data_directory }}/logs:/var/log/supervisor"
|
|
|
|
- "/var/run/dbus:/var/run/dbus"
|
|
|
|
network_mode: host
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
memory: 1g
|