ansible-nas/tasks/tautulli.yml

31 lines
866 B
YAML
Raw Normal View History

2018-09-23 19:20:10 +00:00
- name: Create Tautulli Directories
file:
path: "{{ item }}"
state: directory
# mode: 0755
with_items:
- "{{ tautulli_config_directory }}"
2020-01-05 20:08:59 +00:00
- "{{ plex_logs }}"
2018-09-23 19:20:10 +00:00
- name: Tautulli Docker Container
docker_container:
name: tautulli
image: linuxserver/tautulli
pull: true
volumes:
- "{{ tautulli_config_directory }}:/config:rw"
2020-01-05 20:08:59 +00:00
- "{{ plex_logs }}:/logs:ro"
#network_mode: "host"
ports:
- "{{ tautulli_port }}:8181"
2018-09-23 19:20:10 +00:00
env:
TZ: "{{ ansible_nas_timezone }}"
2018-09-23 19:20:10 +00:00
PUID: "{{ tautulli_user_id }}"
PGID: "{{ tautulli_group_id }}"
restart_policy: unless-stopped
memory: 1g
labels:
traefik.backend: "tautulli"
traefik.frontend.rule: "Host:tautulli.{{ ansible_nas_domain }}"
traefik.enable: "{{ tautulli_available_externally }}"
traefik.port: "{{ tautulli_port }}"