-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtautulli-install.yml
50 lines (46 loc) · 1.09 KB
/
tautulli-install.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
- name: Install and configure Tautulli
hosts: tautulli
remote_user: ubuntu
become: yes
vars_files:
- vars/group_vars.yml
tasks:
- name: Create Tautulli User
ansible.builtin.user:
name: tautulli
shell: /bin/false
home: /home/tautulli
- name: Install Docker Pip Package
pip:
name: "{{ item }}"
state: present
extra_args: --ignore-installed PyYAML
loop:
- docker
- name: Remove tautulli Container
docker_container:
name: tautulli
state: absent
when: "upgrade == 'True'"
- name: Install Tautulli Container
docker_container:
name: tautulli
image: linuxserver/tautulli
pull: yes
state: started
restart_policy: unless-stopped
network_mode: host
ports:
- "8181:8181/tcp"
env:
PUID: "1000"
PGID: "1000"
TZ: "America/New_York"
volumes:
- /home/tautulli:/config
roles:
- role: docker
tags: docker
- role: docker-compose
tags: docker