mv miniflux to roles

This commit is contained in:
PurpleNinja225 2021-02-05 23:06:55 -09:00
parent 3645e1ac29
commit e7126e9154
4 changed files with 35 additions and 20 deletions

View file

@ -33,9 +33,6 @@ youtubedlmaterial_enabled: false
# Music # Music
mymediaforalexa_enabled: false mymediaforalexa_enabled: false
# News
miniflux_enabled: false
# System Management # System Management
glances_enabled: false glances_enabled: false
stats_enabled: false stats_enabled: false
@ -379,15 +376,6 @@ guacamole_available_externally: "false"
guacamole_data_directory: "{{ docker_home }}/guacamole" guacamole_data_directory: "{{ docker_home }}/guacamole"
guacamole_port: "8090" guacamole_port: "8090"
###
### Miniflux
###
miniflux_available_externally: "false"
miniflux_data_directory: "{{ docker_home }}/miniflux"
miniflux_admin_username: admin
miniflux_admin_password: supersecure
miniflux_port: "8070"
### ###
### CloudCmd ### CloudCmd
### ###

View file

@ -108,6 +108,11 @@
- minidlna - minidlna
when: (minidlna_enabled | default(False)) when: (minidlna_enabled | default(False))
- role: miniflux
tags:
- miniflux
when: (miniflux_enabled | default(False))
- role: mylar - role: mylar
tags: tags:
- mylar - mylar
@ -223,10 +228,6 @@
when: (znc_enabled | default(False)) when: (znc_enabled | default(False))
tags: znc tags: znc
- import_tasks: tasks/miniflux.yml
when: (miniflux_enabled | default(False))
tags: miniflux
- import_tasks: tasks/gitlab.yml - import_tasks: tasks/gitlab.yml
when: (gitlab_enabled | default(False)) when: (gitlab_enabled | default(False))
tags: gitlab tags: gitlab

View file

@ -0,0 +1,19 @@
---
# enable or disable the application
miniflux_enabled: false
miniflux_available_externally: "false"
# directories
miniflux_data_directory: "{{ docker_home }}/miniflux"
# env
miniflux_admin_username: admin
miniflux_admin_password: supersecure
# network
miniflux_hostname: "miniflux"
miniflux_port: "8070"
# specs
miniflux_memory: "1g"

View file

@ -1,7 +1,9 @@
---
- name: Create Miniflux Directories - name: Create Miniflux Directories
file: file:
path: "{{ item }}" path: "{{ item }}"
state: directory state: directory
# mode: 0755
with_items: with_items:
- "{{ miniflux_data_directory }}/postgres" - "{{ miniflux_data_directory }}/postgres"
@ -18,13 +20,18 @@
restart_policy: unless-stopped restart_policy: unless-stopped
memory: 1g memory: 1g
- name: Create Miniflux container - name: Create Miniflux Docker Container
docker_container: docker_container:
name: miniflux name: miniflux
image: miniflux/miniflux:latest image: miniflux/miniflux:latest
pull: true pull: true
links: links:
- miniflux-postgres:db - miniflux-postgres:db
volumes:
- "{{ miniflux_config_directory }}:/config:rw"
- "{{ miniflux_logs }}:/logs:rw"
- "{{ miniflux_data_directory }}:/data:rw"
network_mode: "bridge"
ports: ports:
- "{{ miniflux_port }}:8080" - "{{ miniflux_port }}:8080"
env: env:
@ -34,10 +41,10 @@
ADMIN_USERNAME: "{{ miniflux_admin_username }}" ADMIN_USERNAME: "{{ miniflux_admin_username }}"
ADMIN_PASSWORD: "{{ miniflux_admin_password }}" ADMIN_PASSWORD: "{{ miniflux_admin_password }}"
restart_policy: unless-stopped restart_policy: unless-stopped
memory: 1g memory: "{{ miniflux_memory }}"
labels: labels:
traefik.enable: "{{ miniflux_available_externally }}" traefik.enable: "{{ miniflux_available_externally }}"
traefik.http.routers.miniflux.rule: "Host(`miniflux.{{ ansible_nas_domain }}`)" traefik.http.routers.miniflux.rule: "Host(`{{ miniflux_hostname }}.{{ ansible_nas_domain }}`)"
traefik.http.routers.miniflux.tls.certresolver: "letsencrypt" traefik.http.routers.miniflux.tls.certresolver: "letsencrypt"
traefik.http.routers.miniflux.tls.domains[0].main: "{{ ansible_nas_domain }}" traefik.http.routers.miniflux.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.miniflux.tls.domains[0].sans: "*.{{ ansible_nas_domain }}" traefik.http.routers.miniflux.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"