move firefly to role

This commit is contained in:
PurpleNinja225 2021-02-06 02:21:23 -09:00
parent 3645e1ac29
commit 0b74fc2e7a
4 changed files with 24 additions and 17 deletions

View file

@ -54,9 +54,6 @@ gitlab_enabled: false
znc_enabled: false znc_enabled: false
thelounge_enabled: false thelounge_enabled: false
# Finance
firefly_enabled: false
# Wallabag # Wallabag
wallabag_enabled: false wallabag_enabled: false
@ -450,13 +447,6 @@ thelounge_data_directory: "{{ docker_home }}/thelounge"
thelounge_port_one: "113" thelounge_port_one: "113"
thelounge_port_two: "9002" thelounge_port_two: "9002"
###
### Firefly
###
firefly_available_externally: "false"
firefly_data_directory: "{{ docker_home }}/firefly"
firefly_port: "8066"
### ###
### Nzbget ### Nzbget
### ###

10
nas.yml
View file

@ -83,6 +83,11 @@
- emby - emby
when: (emby_enabled | default(False)) when: (emby_enabled | default(False))
- role: firefly
tags:
- firefly
when: (firefly_enabled | default(False))
- role: gitea - role: gitea
tags: tags:
- gitea - gitea
@ -198,11 +203,6 @@
- watchtower - watchtower
when: (watchtower_enabled | default(False)) when: (watchtower_enabled | default(False))
tasks:
- import_tasks: tasks/firefly.yml
when: (firefly_enabled | default(False))
tags: firefly
- import_tasks: tasks/tautulli.yml - import_tasks: tasks/tautulli.yml
when: (tautulli_enabled | default(False)) when: (tautulli_enabled | default(False))
tags: tautulli tags: tautulli

View 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"

View file

@ -1,7 +1,9 @@
---
- name: Create Firefly III Directories - name: Create Firefly III Directories
file: file:
path: "{{ item }}" path: "{{ item }}"
state: directory state: directory
# mode: 0755
with_items: with_items:
- "{{ firefly_data_directory }}/postgresql" - "{{ firefly_data_directory }}/postgresql"
- "{{ firefly_data_directory }}/mysql" - "{{ firefly_data_directory }}/mysql"
@ -37,6 +39,7 @@
- "{{ firefly_data_directory }}/upload:/var/www/firefly-iii/storage/upload:rw" - "{{ firefly_data_directory }}/upload:/var/www/firefly-iii/storage/upload:rw"
links: links:
- firefly-mysql:db - firefly-mysql:db
network_mode: "bridge"
ports: ports:
- "{{ firefly_port }}:8080" - "{{ firefly_port }}:8080"
env: env:
@ -49,10 +52,10 @@
DB_PASSWORD: "firefly" DB_PASSWORD: "firefly"
TZ: "{{ ansible_nas_timezone }}" TZ: "{{ ansible_nas_timezone }}"
restart_policy: unless-stopped restart_policy: unless-stopped
memory: 1g memory: "{{ firefly_memory }}"
labels: labels:
traefik.enable: "{{ firefly_available_externally }}" 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.certresolver: "letsencrypt"
traefik.http.routers.firefly.tls.domains[0].main: "{{ ansible_nas_domain }}" traefik.http.routers.firefly.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.firefly.tls.domains[0].sans: "*.{{ ansible_nas_domain }}" traefik.http.routers.firefly.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"