mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-25 02:53:11 +00:00
move firefly to role
This commit is contained in:
parent
3645e1ac29
commit
0b74fc2e7a
4 changed files with 24 additions and 17 deletions
|
@ -54,9 +54,6 @@ gitlab_enabled: false
|
|||
znc_enabled: false
|
||||
thelounge_enabled: false
|
||||
|
||||
# Finance
|
||||
firefly_enabled: false
|
||||
|
||||
# Wallabag
|
||||
wallabag_enabled: false
|
||||
|
||||
|
@ -450,13 +447,6 @@ thelounge_data_directory: "{{ docker_home }}/thelounge"
|
|||
thelounge_port_one: "113"
|
||||
thelounge_port_two: "9002"
|
||||
|
||||
###
|
||||
### Firefly
|
||||
###
|
||||
firefly_available_externally: "false"
|
||||
firefly_data_directory: "{{ docker_home }}/firefly"
|
||||
firefly_port: "8066"
|
||||
|
||||
###
|
||||
### Nzbget
|
||||
###
|
||||
|
|
10
nas.yml
10
nas.yml
|
@ -83,6 +83,11 @@
|
|||
- emby
|
||||
when: (emby_enabled | default(False))
|
||||
|
||||
- role: firefly
|
||||
tags:
|
||||
- firefly
|
||||
when: (firefly_enabled | default(False))
|
||||
|
||||
- role: gitea
|
||||
tags:
|
||||
- gitea
|
||||
|
@ -198,11 +203,6 @@
|
|||
- watchtower
|
||||
when: (watchtower_enabled | default(False))
|
||||
|
||||
tasks:
|
||||
- import_tasks: tasks/firefly.yml
|
||||
when: (firefly_enabled | default(False))
|
||||
tags: firefly
|
||||
|
||||
- import_tasks: tasks/tautulli.yml
|
||||
when: (tautulli_enabled | default(False))
|
||||
tags: tautulli
|
||||
|
|
14
roles/firefly/defaults/main.yml
Normal file
14
roles/firefly/defaults/main.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
# enable or disable the application
|
||||
firefly_enabled: false
|
||||
firefly_available_externally: "false"
|
||||
|
||||
# directories
|
||||
firefly_data_directory: "{{ docker_home }}/firefly"
|
||||
|
||||
# network
|
||||
firefly_hostname: "firefly"
|
||||
firefly_port: "8066"
|
||||
|
||||
# specs
|
||||
firefly_memory: "1g"
|
|
@ -1,7 +1,9 @@
|
|||
---
|
||||
- name: Create Firefly III Directories
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
# mode: 0755
|
||||
with_items:
|
||||
- "{{ firefly_data_directory }}/postgresql"
|
||||
- "{{ firefly_data_directory }}/mysql"
|
||||
|
@ -37,6 +39,7 @@
|
|||
- "{{ firefly_data_directory }}/upload:/var/www/firefly-iii/storage/upload:rw"
|
||||
links:
|
||||
- firefly-mysql:db
|
||||
network_mode: "bridge"
|
||||
ports:
|
||||
- "{{ firefly_port }}:8080"
|
||||
env:
|
||||
|
@ -49,10 +52,10 @@
|
|||
DB_PASSWORD: "firefly"
|
||||
TZ: "{{ ansible_nas_timezone }}"
|
||||
restart_policy: unless-stopped
|
||||
memory: 1g
|
||||
memory: "{{ firefly_memory }}"
|
||||
labels:
|
||||
traefik.enable: "{{ firefly_available_externally }}"
|
||||
traefik.http.routers.firefly.rule: "Host(`firefly.{{ ansible_nas_domain }}`)"
|
||||
traefik.http.routers.firefly.rule: "Host(`{{ firefly_hostname }}.{{ ansible_nas_domain }}`)"
|
||||
traefik.http.routers.firefly.tls.certresolver: "letsencrypt"
|
||||
traefik.http.routers.firefly.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
||||
traefik.http.routers.firefly.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
Loading…
Reference in a new issue