mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-16 08:48:04 +00:00
Merge pull request #378 from mandoteam/move-to-roles
Move bitwarden, nextcloud, duplicati and homeassistant to roles
This commit is contained in:
commit
01e3e92681
10 changed files with 52 additions and 64 deletions
|
@ -20,7 +20,6 @@ nzbget_enabled: false
|
|||
pyload_enabled: false
|
||||
|
||||
# Media Serving
|
||||
plex_enabled: false
|
||||
tautulli_enabled: false
|
||||
|
||||
# Media Sourcing
|
||||
|
@ -52,8 +51,6 @@ virtual_desktop_enabled: false
|
|||
krusader_enabled: false
|
||||
|
||||
# Backup & Restore
|
||||
duplicati_enabled: false
|
||||
nextcloud_enabled: false
|
||||
timemachine_enabled: false
|
||||
|
||||
# Software build and CI
|
||||
|
@ -63,9 +60,6 @@ gitlab_enabled: false
|
|||
znc_enabled: false
|
||||
thelounge_enabled: false
|
||||
|
||||
# Password Management
|
||||
bitwarden_enabled: false
|
||||
|
||||
# Finance
|
||||
firefly_enabled: false
|
||||
|
||||
|
@ -73,7 +67,6 @@ firefly_enabled: false
|
|||
wallabag_enabled: false
|
||||
|
||||
# Home Automation
|
||||
homeassistant_enabled: false
|
||||
mosquitto_enabled: false
|
||||
homebridge_enabled: false
|
||||
openhab_enabled: false
|
||||
|
@ -330,14 +323,6 @@ tautulli_user_id: "0"
|
|||
tautulli_group_id: "0"
|
||||
tautulli_port: "8185"
|
||||
|
||||
|
||||
###
|
||||
### Duplicati
|
||||
###
|
||||
duplicati_available_externally: "false"
|
||||
duplicati_data_directory: "{{ docker_home }}/duplicati/config"
|
||||
duplicati_port: "8200"
|
||||
|
||||
###
|
||||
### Mylar
|
||||
###
|
||||
|
@ -380,7 +365,7 @@ couchpotato_downloads_directory: "{{ downloads_root }}"
|
|||
couchpotato_torrents_directory: "{{ torrents_root }}"
|
||||
couchpotato_user_id: "0"
|
||||
couchpotato_group_id: "0"
|
||||
couchpotato_port: "5050"
|
||||
couchpotato_port: "5050"
|
||||
|
||||
###
|
||||
### OpenVPN
|
||||
|
@ -426,13 +411,6 @@ glances_available_externally: "false"
|
|||
glances_port_one: "61208"
|
||||
glances_port_two: "61209"
|
||||
|
||||
###
|
||||
### Nextcloud
|
||||
###
|
||||
nextcloud_available_externally: "false"
|
||||
nextcloud_data_directory: "{{ docker_home }}/nextcloud"
|
||||
nextcloud_port: "8080"
|
||||
|
||||
###
|
||||
### nginx
|
||||
###
|
||||
|
@ -526,24 +504,6 @@ thelounge_data_directory: "{{ docker_home }}/thelounge"
|
|||
thelounge_port_one: "113"
|
||||
thelounge_port_two: "9002"
|
||||
|
||||
###
|
||||
### Bitwarden
|
||||
###
|
||||
bitwarden_available_externally: "false"
|
||||
bitwarden_data_directory: "{{ docker_home }}/bitwarden"
|
||||
bitwarden_port_a: "19080"
|
||||
bitwarden_port_b: "3012"
|
||||
|
||||
# Keep this token secret, this is password to access admin area of your server!
|
||||
# This token can be anything, but it's recommended to use a long, randomly generated string of characters,
|
||||
# for example running openssl rand -base64 48
|
||||
bitwarden_admin_token: qwertyuiop1234567890poiuytrewq0987654321
|
||||
|
||||
# To create a user set this to "true", and reprovision the container by re-running the ansible-nas playbook.
|
||||
# Once you have created your user, set to "false" and run one more time.
|
||||
# Target just Bitwarden by running: ansible-playbook -i inventory nas.yml -b -K -t bitwarden
|
||||
bitwarden_allow_signups: false
|
||||
|
||||
###
|
||||
### Firefly
|
||||
###
|
||||
|
@ -588,13 +548,6 @@ calibre_port: "8084"
|
|||
# To disable ebook conversion set calibre_ebook_conversion to "". To enable it set it to "linuxserver/calibre-web:calibre"
|
||||
calibre_ebook_conversion: "linuxserver/calibre-web:calibre"
|
||||
|
||||
###
|
||||
### Home Assistant
|
||||
###
|
||||
homeassistant_available_externally: "false"
|
||||
homeassistant_data_directory: "{{ docker_home }}/homeassistant"
|
||||
homeassistant_port: "8123"
|
||||
|
||||
###
|
||||
### openHAB
|
||||
###
|
||||
|
|
36
nas.yml
36
nas.yml
|
@ -53,6 +53,16 @@
|
|||
- bazarr
|
||||
when: (bazarr_enabled | default(False))
|
||||
|
||||
- role: bitwarden
|
||||
tags:
|
||||
- bitwarden
|
||||
when: (bitwarden_enabled | default(False))
|
||||
|
||||
- role: duplicati
|
||||
tags:
|
||||
- duplicati
|
||||
when: (duplicati_enabled | default(False))
|
||||
|
||||
- role: emby
|
||||
tags:
|
||||
- emby
|
||||
|
@ -68,6 +78,11 @@
|
|||
- heimdall
|
||||
when: (heimdall_enabled | default(False))
|
||||
|
||||
- role: homeassistant
|
||||
tags:
|
||||
- homeassistant
|
||||
when: (homeassistant_enabled | default(False))
|
||||
|
||||
- role: lidarr
|
||||
tags:
|
||||
- lidarr
|
||||
|
@ -78,6 +93,11 @@
|
|||
- netdata
|
||||
when: (netdata_enabled | default(False))
|
||||
|
||||
- role: nextcloud
|
||||
tags:
|
||||
- nextcloud
|
||||
when: (nextcloud_enabled | default(False))
|
||||
|
||||
- role: organizr
|
||||
tags:
|
||||
- organizr
|
||||
|
@ -167,10 +187,6 @@
|
|||
when: (glances_enabled | default(False))
|
||||
tags: glances
|
||||
|
||||
- import_tasks: tasks/duplicati.yml
|
||||
when: (duplicati_enabled | default(False))
|
||||
tags: duplicati
|
||||
|
||||
- import_tasks: tasks/couchpotato.yml
|
||||
when: (couchpotato_enabled | default(False))
|
||||
tags: couchpotato
|
||||
|
@ -183,10 +199,6 @@
|
|||
when: (miniflux_enabled | default(False))
|
||||
tags: miniflux
|
||||
|
||||
- import_tasks: tasks/nextcloud.yml
|
||||
when: (nextcloud_enabled | default(False))
|
||||
tags: nextcloud
|
||||
|
||||
- import_tasks: tasks/gitlab.yml
|
||||
when: (gitlab_enabled | default(False))
|
||||
tags: gitlab
|
||||
|
@ -227,10 +239,6 @@
|
|||
when: (joomla_enabled | default(False))
|
||||
tags: joomla
|
||||
|
||||
- import_tasks: tasks/bitwarden.yml
|
||||
when: (bitwarden_enabled | default(False))
|
||||
tags: bitwarden
|
||||
|
||||
- import_tasks: tasks/nzbget.yml
|
||||
when: (nzbget_enabled | default(False))
|
||||
tags: nzbget
|
||||
|
@ -251,10 +259,6 @@
|
|||
when: (calibre_enabled | default(False))
|
||||
tags: calibre
|
||||
|
||||
- import_tasks: tasks/homeassistant.yml
|
||||
when: (homeassistant_enabled | default(False))
|
||||
tags: homeassistant
|
||||
|
||||
- import_tasks: tasks/openhab.yml
|
||||
when: (openhab_enabled | default(False))
|
||||
tags: openhab
|
||||
|
|
16
roles/bitwarden/defaults/main.yml
Normal file
16
roles/bitwarden/defaults/main.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
bitwarden_enabled: false
|
||||
bitwarden_available_externally: "false"
|
||||
bitwarden_data_directory: "{{ docker_home }}/bitwarden"
|
||||
bitwarden_port_a: "19080"
|
||||
bitwarden_port_b: "3012"
|
||||
|
||||
# Keep this token secret, this is password to access admin area of your server!
|
||||
# This token can be anything, but it's recommended to use a long, randomly generated string of characters,
|
||||
# for example running openssl rand -base64 48
|
||||
bitwarden_admin_token: qwertyuiop1234567890poiuytrewq0987654321
|
||||
|
||||
# To create a user set this to "true", and reprovision the container by re-running the ansible-nas playbook.
|
||||
# Once you have created your user, set to "false" and run one more time.
|
||||
# Target just Bitwarden by running: ansible-playbook -i inventory nas.yml -b -K -t bitwarden
|
||||
bitwarden_allow_signups: false
|
5
roles/duplicati/defaults/main.yml
Normal file
5
roles/duplicati/defaults/main.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
duplicati_enabled: false
|
||||
duplicati_available_externally: "false"
|
||||
duplicati_data_directory: "{{ docker_home }}/duplicati/config"
|
||||
duplicati_port: "8200"
|
5
roles/homeassistant/defaults/main.yml
Normal file
5
roles/homeassistant/defaults/main.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
homeassistant_enabled: false
|
||||
homeassistant_available_externally: "false"
|
||||
homeassistant_data_directory: "{{ docker_home }}/homeassistant"
|
||||
homeassistant_port: "8123"
|
5
roles/nextcloud/defaults/main.yml
Normal file
5
roles/nextcloud/defaults/main.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
nextcloud_enabled: false
|
||||
nextcloud_available_externally: "false"
|
||||
nextcloud_data_directory: "{{ docker_home }}/nextcloud"
|
||||
nextcloud_port: "8080"
|
Loading…
Reference in a new issue