More apps start/stop

This commit is contained in:
David Stephens 2022-09-07 22:37:47 +01:00
parent 8a44a389c2
commit 90a4eacad6
17 changed files with 356 additions and 254 deletions

View file

@ -80,37 +80,30 @@
- role: dashy - role: dashy
tags: tags:
- dashy - dashy
when: (dashy_enabled | default(False))
- role: deluge - role: deluge
tags: tags:
- deluge - deluge
when: (deluge_enabled | default(False))
- role: dokuwiki - role: dokuwiki
tags: tags:
- dokuwiki - dokuwiki
when: (dokuwiki_enabled | default(False))
- role: duplicacy - role: duplicacy
tags: tags:
- duplicacy - duplicacy
when: (duplicacy_enabled | default(False))
- role: duplicati - role: duplicati
tags: tags:
- duplicati - duplicati
when: (duplicati_enabled | default(False))
- role: emby - role: emby
tags: tags:
- emby - emby
when: (emby_enabled | default(False))
- role: esphome - role: esphome
tags: tags:
- esphome - esphome
when: (esphome_enabled | default(False))
- role: firefly - role: firefly
tags: tags:

View file

@ -8,3 +8,6 @@ dashy_hostname: "dashy"
# specs # specs
dashy_memory: 2g dashy_memory: 2g
# docker
dashy_container_name: dashy

View file

@ -1,7 +1,9 @@
--- ---
- name: Start Dashy
block:
- name: Dashy Docker Container - name: Dashy Docker Container
docker_container: docker_container:
name: dashy name: "{{ dashy_container_name }}"
image: lissy93/dashy:latest image: lissy93/dashy:latest
pull: true pull: true
ports: ports:
@ -15,3 +17,12 @@
traefik.http.routers.dashy.tls.domains[0].main: "{{ ansible_nas_domain }}" traefik.http.routers.dashy.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.dashy.tls.domains[0].sans: "*.{{ ansible_nas_domain }}" traefik.http.routers.dashy.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
traefik.http.services.dashy.loadbalancer.server.port: "80" traefik.http.services.dashy.loadbalancer.server.port: "80"
when: dashy_enabled is true
- name: Stop Dashy
block:
- name: Stop Dashy
docker_container:
name: "{{ dashy_container_name }}"
state: absent
when: dashy_enabled is false

View file

@ -22,3 +22,5 @@ deluge_timezone: "{{ ansible_nas_timezone }}"
# specs # specs
deluge_memory: 1g deluge_memory: 1g
deluge_container_name: deluge

View file

@ -1,9 +1,10 @@
--- ---
- name: Start Deluge
block:
- name: Create Deluge Directories - name: Create Deluge Directories
file: file:
path: "{{ item }}" path: "{{ item }}"
state: directory state: directory
# mode: 0755
with_items: with_items:
- "{{ deluge_config_directory }}" - "{{ deluge_config_directory }}"
- "{{ deluge_download_directory }}" - "{{ deluge_download_directory }}"
@ -31,3 +32,12 @@
traefik.http.routers.deluge.tls.domains[0].main: "{{ ansible_nas_domain }}" traefik.http.routers.deluge.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.deluge.tls.domains[0].sans: "*.{{ ansible_nas_domain }}" traefik.http.routers.deluge.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
traefik.http.services.deluge.loadbalancer.server.port: "8112" traefik.http.services.deluge.loadbalancer.server.port: "8112"
when: when deluge_enabled is true
- name: Stop Deluge
block:
- name: Stop Deluge
docker_container:
name: "{{ deluge_container_name }}"
state: absent
when: deluge_enabled is false

View file

@ -15,3 +15,6 @@ dokuwiki_port: "8085"
# specs # specs
dokuwiki_memory: 1g dokuwiki_memory: 1g
# docker
docuwiki_container_name: docuwiki

View file

@ -1,4 +1,6 @@
--- ---
- name: Start Docuwiki
block:
- name: Create DokuWiki Directories - name: Create DokuWiki Directories
file: file:
path: "{{ item }}" path: "{{ item }}"
@ -8,7 +10,7 @@
- name: DokuWiki Docker Container - name: DokuWiki Docker Container
docker_container: docker_container:
name: dokuwiki name: "{{ docuwiki_container_name }}"
image: linuxserver/dokuwiki:latest image: linuxserver/dokuwiki:latest
pull: true pull: true
volumes: volumes:
@ -28,3 +30,12 @@
traefik.http.routers.dokuwiki.tls.domains[0].main: "{{ ansible_nas_domain }}" traefik.http.routers.dokuwiki.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.dokuwiki.tls.domains[0].sans: "*.{{ ansible_nas_domain }}" traefik.http.routers.dokuwiki.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
traefik.http.services.dokuwiki.loadbalancer.server.port: "80" traefik.http.services.dokuwiki.loadbalancer.server.port: "80"
when: docuwiki_enabled is true
- name: Stop Docuwiki
block:
- name: Stop Docuwiki
docker_container:
name: "{{ docuwiki_container_name }}"
state: absent
when: docuwiki_enabled is false

View file

@ -22,3 +22,6 @@ duplicacy_port: "3875"
duplicacy_hostname: "duplicacy" duplicacy_hostname: "duplicacy"
duplicacy_memory: 1g duplicacy_memory: 1g
# docker
duplicacy_container_name: duplicacy

View file

@ -1,4 +1,6 @@
--- ---
- name: Start Duplicacy
block:
- name: Create Duplicacy Directories - name: Create Duplicacy Directories
file: file:
path: "{{ item }}" path: "{{ item }}"
@ -10,7 +12,7 @@
- name: Duplicacy Docker Container - name: Duplicacy Docker Container
docker_container: docker_container:
name: duplicacy name: "{{ duplicacy_container_name }}"
image: saspus/duplicacy-web:mini image: saspus/duplicacy-web:mini
hostname: "{{ duplicacy_hostname }}" hostname: "{{ duplicacy_hostname }}"
pull: true pull: true
@ -35,3 +37,12 @@
traefik.http.routers.duplicacy.tls.domains[0].main: "{{ ansible_nas_domain }}" traefik.http.routers.duplicacy.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.duplicacy.tls.domains[0].sans: "*.{{ ansible_nas_domain }}" traefik.http.routers.duplicacy.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
traefik.http.services.duplicacy.loadbalancer.server.port: "3875" traefik.http.services.duplicacy.loadbalancer.server.port: "3875"
when: duplicacy_enabled is true
- name: Stop Duplicacy
block:
- name: Stop Duplicacy
docker_container:
name: "{{ duplicacy_container_name }}"
state: absent
when: duplicacy_enabled is false

View file

@ -17,3 +17,6 @@ duplicati_port: "8200"
duplicati_hostname: "duplicati" duplicati_hostname: "duplicati"
duplicati_memory: 1g duplicati_memory: 1g
# docker
duplicati_container_name: duplicati

View file

@ -1,4 +1,6 @@
--- ---
- name: Start Duplicati
block:
- name: Create Duplicati Directory - name: Create Duplicati Directory
file: file:
path: "{{ item }}" path: "{{ item }}"
@ -8,7 +10,7 @@
- name: Dupicati Docker Container - name: Dupicati Docker Container
docker_container: docker_container:
name: duplicati name: "{{ duplicati_container_name }}"
image: linuxserver/duplicati image: linuxserver/duplicati
pull: true pull: true
ports: ports:
@ -31,3 +33,12 @@
traefik.http.routers.duplicati.tls.domains[0].main: "{{ ansible_nas_domain }}" traefik.http.routers.duplicati.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.duplicati.tls.domains[0].sans: "*.{{ ansible_nas_domain }}" traefik.http.routers.duplicati.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
traefik.http.services.duplicati.loadbalancer.server.port: "8200" traefik.http.services.duplicati.loadbalancer.server.port: "8200"
when: duplicati_enabled is true
- name: Stop Duplicati
block:
- name: Stop Duplicati
docker_container:
name: "{{ duplicati_container_name }}"
state: absent
when: duplicati_enabled is false

View file

@ -23,3 +23,6 @@ emby_hostname: "emby"
# specs # specs
emby_memory: 1g emby_memory: 1g
# docker
emby_container_name: emby

View file

@ -1,4 +1,6 @@
--- ---
- name: Start Emby
block:
- name: Create Emby Directories - name: Create Emby Directories
file: file:
path: "{{ item }}" path: "{{ item }}"
@ -8,7 +10,7 @@
- name: Emby Docker Container - name: Emby Docker Container
docker_container: docker_container:
name: emby name: "{{ emby_container_name }}"
image: emby/embyserver image: emby/embyserver
pull: true pull: true
volumes: volumes:
@ -31,3 +33,12 @@
traefik.http.routers.emby.tls.domains[0].main: "{{ ansible_nas_domain }}" traefik.http.routers.emby.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.emby.tls.domains[0].sans: "*.{{ ansible_nas_domain }}" traefik.http.routers.emby.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
traefik.http.services.emby.loadbalancer.server.port: "8096" traefik.http.services.emby.loadbalancer.server.port: "8096"
when: emby_enabled is true
- name: Stop Emby
block:
- name: Stop Emby
docker_container:
name: "{{ emby_container_name }}"
state: absent
when: emby_enabled is false

View file

@ -15,3 +15,6 @@ esphome_port: "6052"
# specs # specs
esphome_memory: 1g esphome_memory: 1g
# docker
esphome_container_name: esphome

View file

@ -1,4 +1,6 @@
--- ---
- name: Start EspHome
block:
- name: Create EspHome Directories - name: Create EspHome Directories
file: file:
path: "{{ item }}" path: "{{ item }}"
@ -8,7 +10,7 @@
- name: EspHome Docker Container - name: EspHome Docker Container
docker_container: docker_container:
name: esphome name: "{{ esphome_container_name }}"
image: esphome/esphome:latest image: esphome/esphome:latest
pull: true pull: true
volumes: volumes:
@ -29,3 +31,12 @@
traefik.http.routers.esphome.tls.domains[0].main: "{{ ansible_nas_domain }}" traefik.http.routers.esphome.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.esphome.tls.domains[0].sans: "*.{{ ansible_nas_domain }}" traefik.http.routers.esphome.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
traefik.http.services.esphome.loadbalancer.server.port: "80" traefik.http.services.esphome.loadbalancer.server.port: "80"
when: esphome_enabled is true
- name: Stop EspHome
block:
- name: Stop EspHome
docker_container:
name: "{{ esphome_container_name }}"
state: absent
when: esphome_enabled is false

View file

@ -1,5 +1,5 @@
--- ---
heimdall_enabled: true heimdall_enabled: false
heimdall_available_externally: false heimdall_available_externally: false
# directories # directories
@ -17,3 +17,5 @@ heimdall_group_id: "1310"
# specs # specs
heimdall_memory: 1g heimdall_memory: 1g
heimdall_container_name: heimdall

View file

@ -1,4 +1,6 @@
--- ---
- name: Start Heimdall
block:
- name: Create Heimdall group - name: Create Heimdall group
group: group:
name: heimdall name: heimdall
@ -26,7 +28,7 @@
- name: Create Heimdall container - name: Create Heimdall container
docker_container: docker_container:
name: heimdall name: "{{ heimdall_container_name }}"
image: "{{ heimdall_docker_image }}" image: "{{ heimdall_docker_image }}"
pull: true pull: true
volumes: volumes:
@ -47,3 +49,12 @@
traefik.http.routers.heimdall.tls.domains[0].main: "{{ ansible_nas_domain }}" traefik.http.routers.heimdall.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.heimdall.tls.domains[0].sans: "*.{{ ansible_nas_domain }}" traefik.http.routers.heimdall.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
traefik.http.services.heimdall.loadbalancer.server.port: "80" traefik.http.services.heimdall.loadbalancer.server.port: "80"
when: heimdall_enabled is true
- name: Stop Heimdall
block:
- name: Stop Heimdall
docker_container:
name: "{{ heimdall_container_name }}"
state: absent
when: heimdall_enabled is false