Huge role refactoring/cleanup. Other commits will propably follow. Because some bugs will exist. Still important for longrun and also for auto docs/help/slideshow generation

This commit is contained in:
2025-07-08 23:43:13 +02:00
parent 6b87a049d4
commit 563d5fd528
1242 changed files with 2301 additions and 1355 deletions

View File

@@ -104,24 +104,23 @@
- name: setup standard wireguard
when: ('wireguard_server' | application_allowed(group_names, allowed_applications))
include_role:
name: wireguard
name: network-wireguard-core
# vpn setup
- name: setup wireguard client behind firewall\nat
when: ('wireguard_behind_firewall' | application_allowed(group_names, allowed_applications))
include_role:
name: client-wireguard-behind-firewall
name: network-wireguard-firewalled
- name: setup wireguard client
when: ('wireguard_client' | application_allowed(group_names, allowed_applications))
include_role:
name: client-wireguard
name: network-wireguard-plain
## backup setup
- name: setup replica backup hosts
when: ('backup_remote_to_local' | application_allowed(group_names, allowed_applications))
include_role:
name: backup-remote-to-local
include_role: backup-remote-to-local
- name: setup backup to swappable
when: ('backup_to_usb' | application_allowed(group_names, allowed_applications))
@@ -149,4 +148,4 @@
- name: setup swapfile hosts
when: ('swapfile' | application_allowed(group_names, allowed_applications))
include_role:
name: system-swapfile
name: maintenance-swapfile

View File

@@ -14,43 +14,43 @@
name: "{{ item }}"
loop:
- persona-employee
- client-jrnl
- desktop-jrnl
- name: personal computer for business
when: ("business_personal_computer" in group_names)
include_role:
name: client-gnucash
name: desktop-gnucash
- name: persona-designer
when: ("collection_designer" in group_names)
include_role:
name: persona-designer
- name: client-qbittorrent
- name: desktop-qbittorrent
when: ("collection_torrent" in group_names)
include_role:
name: client-qbittorrent
name: desktop-qbittorrent
- name: persona-streamer
when: ("collection_streamer" in group_names)
include_role:
name: persona-streamer
- name: client-bluray-player
- name: desktop-bluray-player
when: ("collection_bluray_player" in group_names)
include_role:
name: client-bluray-player
name: desktop-bluray-player
- name: GNOME setup
when: ("gnome" in group_names)
include_role:
name: client-gnome
name: desktop-gnome
- name: setup ssh client
when: ("ssh-client" in group_names)
include_role:
name: client-ssh
name: desktop-ssh
- name: setup gaming hosts
when: ("gaming" in group_names)
@@ -60,22 +60,22 @@
- name: setup entertainment hosts
when: ("entertainment" in group_names)
include_role:
name: client-spotify
name: desktop-spotify
- name: setup torbrowser hosts
when: ("torbrowser" in group_names)
include_role:
name: client-torbrowser
name: desktop-torbrowser
- name: setup nextcloud-client
when: ("nextcloud_client" in group_names)
include_role:
name: client-nextcloud
name: desktop-nextcloud
- name: setup docker
when: ("docker_client" in group_names)
include_role:
name: client-docker
name: desktop-docker
# driver
- name: setup msi rgb keyboard

View File

@@ -4,23 +4,23 @@
include_role:
name: "{{ item }}"
loop:
- system-security
- journalctl
- health-disc-space
- core-security
- core-journalctl
- monitor-bot-disc-space
- cleanup-disc-space
- health-btrfs
- system-btrfs-auto-balancer
- monitor-bot-btrfs
- maintenance-btrfs-auto-balancer
- name: "Integrate Docker Role includes"
include_tasks: "./tasks/utils/docker-roles.yml"
include_tasks: "./tasks/utils/web-app-roles.yml"
# Native Webserver Roles
- name: setup nginx-serve-htmls
- name: setup web-service-htmls
include_role:
name: nginx-serve-html
name: web-service-html
vars:
domain: "{{primary_domain}}"
when: ('nginx-serve-htmls' | application_allowed(group_names, allowed_applications))
when: ('web-service-htmls' | application_allowed(group_names, allowed_applications))
- name: "setup corporate identity"
include_role:
@@ -30,11 +30,11 @@
- name: setup redirect hosts
when: ('redirect' | application_allowed(group_names, allowed_applications))
include_role:
name: nginx-redirect-domains
name: web-redirect-domains
vars:
domain_mappings: "{{ current_play_domain_mappings_redirect}}"
- name: setup www redirect
when: ('www_redirect' | application_allowed(group_names, allowed_applications))
include_role:
name: nginx-redirect-www
name: web-redirect-www

View File

@@ -1,6 +1,6 @@
- name: optimize storage performance
include_role:
name: system-storage-optimizer
name: maintenance-docker-storage-optimizer
when: ('storage-optimizer' | application_allowed(group_names, allowed_applications))
- name: Cleanup Docker Anonymous Volumes

View File

@@ -0,0 +1,300 @@
- name: setup presentation
when: ('presentation' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-presentation
- name: flush handlers after presentation
meta: flush_handlers
- name: setup matrix-deprecated
when: ('matrix-deprecated' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-matrix-deprecated
- name: flush handlers after matrix-deprecated
meta: flush_handlers
- name: setup postgres
when: ('postgres' | application_allowed(group_names, allowed_applications))
include_role:
name: service-rdbms-postgres
- name: flush handlers after postgres
meta: flush_handlers
- name: setup syncope
when: ('syncope' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-syncope
- name: flush handlers after syncope
meta: flush_handlers
- name: setup elk
when: ('elk' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-elk
- name: flush handlers after elk
meta: flush_handlers
- name: setup ldap
when: ('ldap' | application_allowed(group_names, allowed_applications))
include_role:
name: service-openldap
- name: flush handlers after ldap
meta: flush_handlers
- name: setup None
when: ('None' | application_allowed(group_names, allowed_applications))
include_role:
name: docker-compose
- name: flush handlers after None
meta: flush_handlers
- name: setup collabora
when: ('collabora' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-collabora
- name: flush handlers after collabora
meta: flush_handlers
- name: setup sphinx
when: ('sphinx' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-sphinx
- name: flush handlers after sphinx
meta: flush_handlers
- name: setup mariadb
when: ('mariadb' | application_allowed(group_names, allowed_applications))
include_role:
name: service-rdbms-mariadb
- name: flush handlers after mariadb
meta: flush_handlers
- name: setup simpleicons
when: ('simpleicons' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-simpleicons
- name: flush handlers after simpleicons
meta: flush_handlers
- name: setup None
when: ('None' | application_allowed(group_names, allowed_applications))
include_role:
name: service-rdbms-central
- name: flush handlers after None
meta: flush_handlers
- name: setup roulette-wheel
when: ('roulette-wheel' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-roulette-wheel
- name: flush handlers after roulette-wheel
meta: flush_handlers
- name: setup jenkins
when: ('jenkins' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-jenkins
- name: flush handlers after jenkins
meta: flush_handlers
- name: setup matomo
when: ('matomo' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-matomo
- name: flush handlers after matomo
meta: flush_handlers
- name: setup portfolio
when: ('portfolio' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-portfolio
- name: flush handlers after portfolio
meta: flush_handlers
- name: setup keycloak
when: ('keycloak' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-keycloak
- name: flush handlers after keycloak
meta: flush_handlers
- name: setup yourls
when: ('yourls' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-yourls
- name: flush handlers after yourls
meta: flush_handlers
- name: setup wordpress
when: ('wordpress' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-wordpress
- name: flush handlers after wordpress
meta: flush_handlers
- name: setup pixelfed
when: ('pixelfed' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-pixelfed
- name: flush handlers after pixelfed
meta: flush_handlers
- name: setup peertube
when: ('peertube' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-peertube
- name: flush handlers after peertube
meta: flush_handlers
- name: setup phpmyadmin
when: ('phpmyadmin' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-phpmyadmin
- name: flush handlers after phpmyadmin
meta: flush_handlers
- name: setup openproject
when: ('openproject' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-openproject
- name: flush handlers after openproject
meta: flush_handlers
- name: setup phpldapadmin
when: ('phpldapadmin' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-phpldapadmin
- name: flush handlers after phpldapadmin
meta: flush_handlers
- name: setup friendica
when: ('friendica' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-friendica
- name: flush handlers after friendica
meta: flush_handlers
- name: setup taiga
when: ('taiga' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-taiga
- name: flush handlers after taiga
meta: flush_handlers
- name: setup bigbluebutton
when: ('bigbluebutton' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-bigbluebutton
- name: flush handlers after bigbluebutton
meta: flush_handlers
- name: setup lam
when: ('lam' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-lam
- name: flush handlers after lam
meta: flush_handlers
- name: setup mastodon
when: ('mastodon' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-mastodon
- name: flush handlers after mastodon
meta: flush_handlers
- name: setup pgadmin
when: ('pgadmin' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-pgadmin
- name: flush handlers after pgadmin
meta: flush_handlers
- name: setup mailu
when: ('mailu' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-mailu
- name: flush handlers after mailu
meta: flush_handlers
- name: setup moodle
when: ('moodle' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-moodle
- name: flush handlers after moodle
meta: flush_handlers
- name: setup discourse
when: ('discourse' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-discourse
- name: flush handlers after discourse
meta: flush_handlers
- name: setup nextcloud
when: ('nextcloud' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-nextcloud
- name: flush handlers after nextcloud
meta: flush_handlers
- name: setup espocrm
when: ('espocrm' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-espocrm
- name: flush handlers after espocrm
meta: flush_handlers
- name: setup joomla
when: ('joomla' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-joomla
- name: flush handlers after joomla
meta: flush_handlers
- name: setup matrix
when: ('matrix' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-matrix
- name: flush handlers after matrix
meta: flush_handlers
- name: setup mobilizon
when: ('mobilizon' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-mobilizon
- name: flush handlers after mobilizon
meta: flush_handlers
- name: setup snipe-it
when: ('snipe-it' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-snipe-it
- name: flush handlers after snipe-it
meta: flush_handlers
- name: setup mybb
when: ('mybb' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-mybb
- name: flush handlers after mybb
meta: flush_handlers
- name: setup attendize
when: ('attendize' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-attendize
- name: flush handlers after attendize
meta: flush_handlers
- name: setup gitlab
when: ('gitlab' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-gitlab
- name: flush handlers after gitlab
meta: flush_handlers
- name: setup mediawiki
when: ('mediawiki' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-mediawiki
- name: flush handlers after mediawiki
meta: flush_handlers
- name: setup funkwhale
when: ('funkwhale' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-funkwhale
- name: flush handlers after funkwhale
meta: flush_handlers
- name: setup gitea
when: ('gitea' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-gitea
- name: flush handlers after gitea
meta: flush_handlers
- name: setup baserow
when: ('baserow' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-baserow
- name: flush handlers after baserow
meta: flush_handlers
- name: setup akaunting
when: ('akaunting' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-akaunting
- name: flush handlers after akaunting
meta: flush_handlers
- name: setup bluesky
when: ('bluesky' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-bluesky
- name: flush handlers after bluesky
meta: flush_handlers
- name: setup listmonk
when: ('listmonk' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-listmonk
- name: flush handlers after listmonk
meta: flush_handlers
- name: setup fusiondirectory
when: ('fusiondirectory' | application_allowed(group_names, allowed_applications))
include_role:
name: web-app-fusiondirectory
- name: flush handlers after fusiondirectory
meta: flush_handlers