2020-12-24 14:27:31 +01:00
|
|
|
---
|
2023-04-18 15:30:22 +02:00
|
|
|
- name: general setup
|
|
|
|
hosts: all
|
|
|
|
become: true
|
|
|
|
roles:
|
|
|
|
- independent_system-update
|
|
|
|
|
|
|
|
- name: servers host setup
|
|
|
|
hosts: servers
|
2021-01-01 16:02:17 +01:00
|
|
|
become: true
|
2020-12-31 13:21:56 +01:00
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- server_system-security
|
|
|
|
- server_native-journalctl
|
|
|
|
- server_native-disc-space-check
|
|
|
|
- server_native-free-disc-space
|
|
|
|
- server_native-btrfs-health-check
|
2023-04-18 18:24:55 +02:00
|
|
|
|
|
|
|
# Wireguard Rollen
|
|
|
|
- name: setup standard wireguard
|
|
|
|
hosts: wireguard_server
|
2021-01-01 16:02:17 +01:00
|
|
|
become: true
|
2020-12-24 14:27:31 +01:00
|
|
|
roles:
|
2023-04-18 18:24:55 +02:00
|
|
|
- independent-application-wireguard
|
|
|
|
|
|
|
|
- name: setup wireguard client behind firewall\nat
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: wireguard_behind_firewall
|
2021-01-11 18:51:44 +01:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 18:24:55 +02:00
|
|
|
- client_application-wireguard-behind-firewall
|
|
|
|
|
|
|
|
- name: setup wireguard client
|
|
|
|
hosts: wireguard_client
|
|
|
|
become: true
|
|
|
|
roles:
|
|
|
|
- client_application-wireguard
|
2022-03-17 16:28:57 +01:00
|
|
|
|
|
|
|
# Native Webserver Roles
|
2020-12-31 10:21:33 +01:00
|
|
|
- name: setup homepages
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: homepage
|
2021-01-01 16:02:17 +01:00
|
|
|
become: true
|
2020-12-24 14:27:31 +01:00
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_native-homepage
|
2020-12-24 14:27:31 +01:00
|
|
|
vars:
|
|
|
|
domain: "{{top_domain}}"
|
2022-03-17 16:28:57 +01:00
|
|
|
- name: setup redirect hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: redirect
|
2022-03-17 16:28:57 +01:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_native-https-redirect
|
2022-03-17 16:28:57 +01:00
|
|
|
vars:
|
|
|
|
domain_mappings: "{{redirect_domain_mappings}}"
|
|
|
|
|
|
|
|
# Docker Roles
|
2020-12-31 10:21:33 +01:00
|
|
|
- name: setup nextcloud hosts
|
2023-04-18 17:00:30 +02:00
|
|
|
hosts: nextcloud_server
|
2021-01-01 16:02:17 +01:00
|
|
|
become: true
|
2020-12-31 10:21:33 +01:00
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_docker-nextcloud
|
2020-12-24 14:27:31 +01:00
|
|
|
vars:
|
|
|
|
domain: cloud.{{top_domain}}
|
|
|
|
http_port: 8001
|
2020-12-31 10:21:33 +01:00
|
|
|
- name: setup gitea hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: gitea
|
2021-01-01 16:02:17 +01:00
|
|
|
become: true
|
2020-12-31 10:21:33 +01:00
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_docker-gitea
|
2020-12-24 14:27:31 +01:00
|
|
|
vars:
|
|
|
|
domain: git.{{top_domain}}
|
|
|
|
http_port: 8002
|
|
|
|
ssh_port: 2201
|
|
|
|
run_mode: prod
|
2020-12-31 10:21:33 +01:00
|
|
|
- name: setup wordpress hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: wordpress
|
2021-01-01 16:02:17 +01:00
|
|
|
become: true
|
2020-12-31 10:21:33 +01:00
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_docker-wordpress
|
2020-12-24 14:27:31 +01:00
|
|
|
vars:
|
2021-10-18 20:24:52 +02:00
|
|
|
domains: "{{wordpress_domains}}"
|
2020-12-24 14:27:31 +01:00
|
|
|
http_port: 8003
|
2020-12-31 10:21:33 +01:00
|
|
|
- name: setup mediawiki hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: mediawiki
|
2021-01-01 16:02:17 +01:00
|
|
|
become: true
|
2020-12-31 10:21:33 +01:00
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_docker-mediawiki
|
2020-12-24 14:27:31 +01:00
|
|
|
vars:
|
|
|
|
domain: wiki.{{top_domain}}
|
|
|
|
http_port: 8004
|
2020-12-31 10:21:33 +01:00
|
|
|
- name: setup mybb hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: mybb
|
2021-01-01 16:02:17 +01:00
|
|
|
become: true
|
2020-12-31 10:21:33 +01:00
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_docker-mybb
|
2020-12-24 14:27:31 +01:00
|
|
|
vars:
|
|
|
|
domain: forum.{{top_domain}}
|
|
|
|
http_port: 8005
|
2021-10-22 10:40:54 +02:00
|
|
|
- name: setup turn server
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: turn_server
|
2021-10-22 10:40:54 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_docker-turn-server
|
2020-12-31 10:21:33 +01:00
|
|
|
- name: setup yourls hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: yourls
|
2021-01-01 16:02:17 +01:00
|
|
|
become: true
|
2020-12-31 10:21:33 +01:00
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_docker-yourls
|
2020-12-24 14:27:31 +01:00
|
|
|
vars:
|
|
|
|
domain: s.{{top_domain}}
|
|
|
|
http_port: 8006
|
2020-12-31 10:21:33 +01:00
|
|
|
- name: setup mailu hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: mailu
|
2021-01-01 16:02:17 +01:00
|
|
|
become: true
|
2020-12-31 10:21:33 +01:00
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_docker-mailu
|
2020-12-27 19:41:35 +01:00
|
|
|
vars:
|
|
|
|
domain: "mail.{{top_domain}}"
|
|
|
|
http_port: 8007
|
2020-12-31 10:21:33 +01:00
|
|
|
- name: setup elk hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: elk
|
2021-01-01 16:02:17 +01:00
|
|
|
become: true
|
2020-12-31 10:21:33 +01:00
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_docker-elk
|
2020-12-30 15:41:34 +01:00
|
|
|
vars:
|
2020-12-30 20:32:28 +01:00
|
|
|
domain: "elk.{{top_domain}}"
|
2020-12-30 15:41:34 +01:00
|
|
|
http_port: 8008
|
2022-11-15 11:56:48 +01:00
|
|
|
- name: setup mastodon hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: mastodon
|
2022-11-15 11:56:48 +01:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_docker-mastodon
|
2022-11-15 11:56:48 +01:00
|
|
|
vars:
|
|
|
|
domain: "mastodon.{{top_domain}}"
|
|
|
|
http_port: 8009
|
|
|
|
stream_port: 4001
|
2022-11-16 11:17:37 +01:00
|
|
|
- name: setup pixelfed hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: pixelfed
|
2022-11-16 11:17:37 +01:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_docker-pixelfed
|
2022-11-16 11:17:37 +01:00
|
|
|
vars:
|
|
|
|
domain: pixelfed.{{top_domain}}
|
|
|
|
http_port: 8010
|
2022-11-17 14:47:25 +01:00
|
|
|
- name: setup peertube hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: peertube
|
2022-11-17 14:47:25 +01:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_docker-peertube
|
2022-11-17 14:47:25 +01:00
|
|
|
vars:
|
|
|
|
domain: peertube.{{top_domain}}
|
|
|
|
http_port: 8011
|
2022-12-02 12:57:15 +01:00
|
|
|
- name: setup bigbluebutton hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: bigbluebutton
|
2022-12-02 12:57:15 +01:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_docker-bigbluebutton
|
2022-12-02 12:57:15 +01:00
|
|
|
vars:
|
|
|
|
domain: bbb.{{top_domain}}
|
2022-12-05 17:43:21 +01:00
|
|
|
- name: setup funkwhale hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: funkwhale
|
2022-12-05 17:43:21 +01:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_docker-funkwhale
|
2022-12-05 17:43:21 +01:00
|
|
|
vars:
|
|
|
|
domain: funkwhale.{{top_domain}}
|
|
|
|
http_port: 8012
|
2022-12-06 20:20:02 +01:00
|
|
|
- name: setup roulette-wheel hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: roulette_wheel
|
2022-12-06 20:20:02 +01:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_docker-roulette-wheel
|
2022-12-06 20:20:02 +01:00
|
|
|
vars:
|
|
|
|
domain: roulette.{{top_domain}}
|
|
|
|
http_port: 8013
|
2022-01-18 19:26:44 +01:00
|
|
|
- name: setup akaunting hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: akaunting
|
2022-01-18 19:08:45 +01:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_docker-akaunting
|
2022-01-18 19:08:45 +01:00
|
|
|
vars:
|
2022-01-18 19:26:44 +01:00
|
|
|
domain: akaunting.{{top_domain}}
|
2022-01-18 19:08:45 +01:00
|
|
|
http_port: 8080
|
2022-03-17 16:28:57 +01:00
|
|
|
|
|
|
|
# Backup Roles
|
|
|
|
- name: setup replica backup hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: replica_backup
|
2022-03-17 16:28:57 +01:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:41:14 +02:00
|
|
|
- role: server_native-pull-primary-backups
|
2023-04-18 14:52:43 +02:00
|
|
|
|
|
|
|
## PC services
|
|
|
|
- name: general host setup
|
2023-04-18 15:30:22 +02:00
|
|
|
hosts: personal_computers
|
2023-04-18 14:52:43 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_collection-administrator-base
|
|
|
|
- pc_driver-non-free
|
2023-04-18 14:52:43 +02:00
|
|
|
|
2023-04-18 15:19:32 +02:00
|
|
|
- name: pc_collection-office
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: collection_officetools
|
2023-04-18 14:52:43 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_collection-office
|
2023-04-18 14:52:43 +02:00
|
|
|
|
2023-04-18 15:19:32 +02:00
|
|
|
- name: pc_collection-designer
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: collection_designer
|
2023-04-18 14:52:43 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_collection-designer
|
2023-04-18 14:52:43 +02:00
|
|
|
|
2023-04-18 15:19:32 +02:00
|
|
|
- name: pc_collection-torrent
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: collection_torrent
|
2023-04-18 14:52:43 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_collection-torrent
|
2023-04-18 14:52:43 +02:00
|
|
|
|
2023-04-18 15:19:32 +02:00
|
|
|
- name: pc_collection-streamer
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: collection_streamer
|
2023-04-18 14:52:43 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_collection-streamer
|
2023-04-18 14:52:43 +02:00
|
|
|
|
2023-04-18 15:19:32 +02:00
|
|
|
- name: pc_collection-bluray-player
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: collection_bluray_player
|
2023-04-18 14:52:43 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_collection-bluray-player
|
2023-04-18 14:52:43 +02:00
|
|
|
|
2023-04-18 15:19:32 +02:00
|
|
|
- name: pc_driver-intel
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: intel
|
2023-04-18 14:52:43 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_driver-intel
|
2023-04-18 14:52:43 +02:00
|
|
|
|
2023-04-18 15:19:32 +02:00
|
|
|
- name: pc_application-latex
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: latex
|
2023-04-18 14:52:43 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_application-latex
|
2023-04-18 14:52:43 +02:00
|
|
|
|
|
|
|
- name: GNOME setup
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: gnome
|
2023-04-18 14:52:43 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_system-gnome
|
2023-04-18 14:52:43 +02:00
|
|
|
|
|
|
|
- name: setup msi rgb keyboard
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: msi_perkeyrgb
|
2023-04-18 14:52:43 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_driver-msi-perkeyrgb
|
2023-04-18 14:52:43 +02:00
|
|
|
|
|
|
|
- name: setup ssh hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: ssh
|
2023-04-18 14:52:43 +02:00
|
|
|
become: false
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_application-ssh
|
2023-04-18 14:52:43 +02:00
|
|
|
|
|
|
|
- name: setup swapfile hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: swapfile
|
2023-04-18 14:52:43 +02:00
|
|
|
become: false
|
|
|
|
roles:
|
2023-04-18 17:00:30 +02:00
|
|
|
- pc_system-swapfile
|
2023-04-18 14:52:43 +02:00
|
|
|
|
|
|
|
- name: setup gaming hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: gaming
|
2023-04-18 14:52:43 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_collection-games
|
2023-04-18 14:52:43 +02:00
|
|
|
|
|
|
|
- name: setup entertainment hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: entertainment
|
2023-04-18 14:52:43 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_collection-entertainment
|
2023-04-18 14:52:43 +02:00
|
|
|
|
|
|
|
- name: setup multiprinter hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: epson_multiprinter
|
2023-04-18 14:52:43 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_driver-epson-multiprinter
|
2023-04-18 14:52:43 +02:00
|
|
|
|
|
|
|
- name: setup torbrowser hosts
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: torbrowser
|
2023-04-18 14:52:43 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_application-torbrowser
|
2023-04-18 14:52:43 +02:00
|
|
|
|
|
|
|
- name: setup nextcloud
|
2023-04-18 17:00:30 +02:00
|
|
|
hosts: nextcloud_client
|
2023-04-18 14:52:43 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_application-nextcloud
|
2023-04-18 14:52:43 +02:00
|
|
|
|
|
|
|
- name: setup docker
|
2023-04-18 15:45:52 +02:00
|
|
|
hosts: docker
|
2023-04-18 14:52:43 +02:00
|
|
|
become: true
|
|
|
|
roles:
|
2023-04-18 15:19:32 +02:00
|
|
|
- pc_application-docker
|