2021-02-21 19:50:07 +00:00
|
|
|
---
|
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"
|
2020-01-05 21:47:40 +00:00
|
|
|
ports:
|
|
|
|
- "{{ tautulli_port }}:8181"
|
2018-09-23 19:20:10 +00:00
|
|
|
env:
|
2018-11-12 22:30:13 +00:00
|
|
|
TZ: "{{ ansible_nas_timezone }}"
|
2018-09-23 19:20:10 +00:00
|
|
|
PUID: "{{ tautulli_user_id }}"
|
|
|
|
PGID: "{{ tautulli_group_id }}"
|
|
|
|
restart_policy: unless-stopped
|
2021-01-29 09:08:36 +00:00
|
|
|
memory: "{{ tautulli_memory }}"
|
2019-04-11 22:03:11 +00:00
|
|
|
labels:
|
|
|
|
traefik.enable: "{{ tautulli_available_externally }}"
|
2021-01-29 09:08:36 +00:00
|
|
|
traefik.http.routers.tautulli.rule: "Host(`{{ tautulli_hostname }}.{{ ansible_nas_domain }}`)"
|
2021-01-19 23:51:59 +00:00
|
|
|
traefik.http.routers.tautulli.tls.certresolver: "letsencrypt"
|
|
|
|
traefik.http.routers.tautulli.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.routers.tautulli.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
2021-02-21 19:50:07 +00:00
|
|
|
traefik.http.services.tautulli.loadbalancer.server.port: "8181"
|