From b3da0bd6f98ad04f67217d378bb7772e0f3a0f4f Mon Sep 17 00:00:00 2001 From: Chris Butler Date: Sun, 23 Sep 2018 15:20:10 -0400 Subject: [PATCH] plexpy -> tautulli --- README.md | 12 ++++++------ group_vars/all.yml.dist | 22 ++++++++++++++++++++-- nas.yml | 14 +++++++------- tasks/plexpy.yml | 22 ---------------------- tasks/tautulli.yml | 22 ++++++++++++++++++++++ 5 files changed, 55 insertions(+), 37 deletions(-) delete mode 100644 tasks/plexpy.yml create mode 100644 tasks/tautulli.yml diff --git a/README.md b/README.md index 9e06aeeb..8d8c09e5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Ansible NAS -After getting burned by broken FreeNAS updates one too many times, I figured I could do a much better job myself using +After getting burned by broken FreeNAS updates one too many times, I figured I could do a much better job myself using just a stock Ubuntu install, some clever Ansible config and a bunch of docker containers. @@ -24,7 +24,7 @@ just a stock Ubuntu install, some clever Ansible config and a bunch of docker co - [InfluxDB](https://github.com/influxdata/influxdb) - Time series database used for stats collection - [Nextcloud](https://nextcloud.com/) - A self-hosted Dropbox alternative - [Plex](https://www.plex.tv/) Plex Media Server - - [Plexpy](http://tautulli.com/) Monitor Your Plex Media Server + - [Tautulli](http://tautulli.com/) Monitor Your Plex Media Server - [Portainer](https://portainer.io/) for managing Docker and running custom images - [Radarr](https://radarr.video/) for organising and downloading movies - [Sickrage](https://sickrage.github.io/) for managing TV episodes @@ -43,8 +43,8 @@ That said, if specific functionality you want isn't included and you think other ## What This Doesn't Do -Ansible NAS doesn't set up your disk partitions, primarily because getting it wrong can be incredibly destructive. -That aside, configuring partitions is usually a one-time (or very infrequent) event, so there's not much to be +Ansible NAS doesn't set up your disk partitions, primarily because getting it wrong can be incredibly destructive. +That aside, configuring partitions is usually a one-time (or very infrequent) event, so there's not much to be gained by automating it. @@ -59,9 +59,9 @@ Ansible NAS should work on any recent Ubuntu box. Development is done on Ubuntu 1. Enable the Ubuntu Universe repository: `sudo add-apt-repository universe` 2. Install Ansible: `sudo apt install ansible` 3. `git clone https://github.com/davestephens/ansible-nas.git && cd ansible-nas` -4. Copy `group_vars/all.yml.dist` to `group_vars/all.yml`. +4. Copy `group_vars/all.yml.dist` to `group_vars/all.yml`. 5. Open up `group_vars/all.yml` and follow the instructions there for configuring your Ansible NAS. -6. If you plan to use Transmission with OpenVPN, also copy `group_vars/vpn_credentials.yml.dist` to +6. If you plan to use Transmission with OpenVPN, also copy `group_vars/vpn_credentials.yml.dist` to `group_vars/vpn_credentials.yml` and fill in your settings. 7. Modify `inventory` and update it with the hostname of your NAS box, or use `localhost ansible_connection=local` if you want to run the playbook on the same box you want to use as your ansible-nas. 8. Install the dependent roles: `ansible-galaxy install -r requirements.yml` (you might need sudo to install Ansible roles) diff --git a/group_vars/all.yml.dist b/group_vars/all.yml.dist index aa04ed13..fbf009ac 100644 --- a/group_vars/all.yml.dist +++ b/group_vars/all.yml.dist @@ -11,7 +11,7 @@ transmission_enabled: false # Plex plex_enabled: false -plexpy_enabled: false +tautulli_enabled: false # Media Sourcing @@ -138,6 +138,24 @@ transmission_group_id: 0 transmission_local_network: "192.168.1.0/24" +### +### Plex +### +plex_config_directory: "{{ docker_home }}/plex/config" +plex_movies_directory: "{{ movies_root }}" +plex_tv_directory: "{{ tv_root }}" +plex_user_id: 0 +plex_group_id: 0 + + +### +### Tautulli +### +tautulli_config_directory: "{{ docker_home }}/tautulli/config" +tautulli_user_id: 0 +tautulli_group_id: 0 + + ### ### Duplicati ### @@ -206,7 +224,7 @@ znc_group_id: 0 ### -### Stats +### Stats ### telegraf_data_directory: "{{ docker_home }}/telegraf" influxdb_data_directory: "{{ docker_home }}/influxdb" diff --git a/nas.yml b/nas.yml index 950060f1..619a4c8d 100644 --- a/nas.yml +++ b/nas.yml @@ -13,9 +13,9 @@ when: plex_enabled == true tags: plex - - import_tasks: tasks/plexpy.yml - when: plexpy_enabled == true - tags: plexpy + - import_tasks: tasks/tautulli.yml + when: tautulli_enabled == true + tags: tautulli - import_tasks: tasks/transmission.yml when: transmission_enabled == true @@ -60,7 +60,7 @@ - import_tasks: tasks/stats.yml when: stats_enabled == true tags: stats - - roles: - - bertvv.samba - - geerlingguy.docker \ No newline at end of file + + roles: + - bertvv.samba + - geerlingguy.docker diff --git a/tasks/plexpy.yml b/tasks/plexpy.yml deleted file mode 100644 index 99ae487e..00000000 --- a/tasks/plexpy.yml +++ /dev/null @@ -1,22 +0,0 @@ -- name: Create Plexpy Directories - file: - path: "{{ item }}" - state: directory - # mode: 0755 - with_items: - - "{{ plexpy_config_directory }}" - -- name: plexpy Docker Container - docker_container: - name: plexpy - image: linuxserver/plexpy - pull: true - volumes: - - "{{ plexpy_config_directory }}:/config:rw" - - "/etc/timezone:/etc/timezone:ro" - network_mode: "host" - env: - PUID: "{{ plexpy_user_id }}" - PGID: "{{ plexpy_group_id }}" - restart_policy: unless-stopped - memory: 1g diff --git a/tasks/tautulli.yml b/tasks/tautulli.yml new file mode 100644 index 00000000..7628dba0 --- /dev/null +++ b/tasks/tautulli.yml @@ -0,0 +1,22 @@ +- name: Create Tautulli Directories + file: + path: "{{ item }}" + state: directory + # mode: 0755 + with_items: + - "{{ tautulli_config_directory }}" + +- name: Tautulli Docker Container + docker_container: + name: tautulli + image: linuxserver/tautulli + pull: true + volumes: + - "{{ tautulli_config_directory }}:/config:rw" + - "/etc/timezone:/etc/timezone:ro" + network_mode: "host" + env: + PUID: "{{ tautulli_user_id }}" + PGID: "{{ tautulli_group_id }}" + restart_policy: unless-stopped + memory: 1g