From afc0b57cfb248ee582abc7ba18c71af06fbaa566 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 23 Apr 2024 18:03:25 +1200 Subject: [PATCH] add arr services add music and subs nginx proxies --- .../host_vars/kodi00.balsillie.house/nginx.yaml | 14 ++++++++++++-- ansible/roles/arr/tasks/main.yaml | 12 ++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/ansible/inventory/host_vars/kodi00.balsillie.house/nginx.yaml b/ansible/inventory/host_vars/kodi00.balsillie.house/nginx.yaml index 9abb93b..9d62b94 100644 --- a/ansible/inventory/host_vars/kodi00.balsillie.house/nginx.yaml +++ b/ansible/inventory/host_vars/kodi00.balsillie.house/nginx.yaml @@ -8,12 +8,22 @@ nginx_sites: type: proxy upstream: host: 127.0.0.1 - port: 8081 + port: 7878 + - name: music.balsillie.house + type: proxy + upstream: + host: 127.0.0.1 + port: 8686 + - name: subs.balsillie.house + type: proxy + upstream: + host: 127.0.0.1 + port: 6767 - name: index.balsillie.house type: proxy upstream: host: 127.0.0.1 - port: 8082 + port: 9696 - name: torrent.balsillie.house type: proxy upstream: diff --git a/ansible/roles/arr/tasks/main.yaml b/ansible/roles/arr/tasks/main.yaml index 194615f..c6f41b8 100644 --- a/ansible/roles/arr/tasks/main.yaml +++ b/ansible/roles/arr/tasks/main.yaml @@ -6,3 +6,15 @@ name: "{{ arr_packages }}" state: present update_cache: true + +- name: Start arr services + ansible.builtin.systemd: + name: "{{ item }}" + state: started + enabled: true + daemon_reload: true + loop: + - sonarr.service + - radarr.service + - lidarr.service + - prowlarr.service