computer-playbook/playbook.servers.yml

283 lines
5.7 KiB
YAML
Raw Normal View History

2020-12-24 14:27:31 +01:00
---
2024-01-10 15:57:37 +01:00
- import_playbook: playbook.constructor.yml
- 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-08-22 22:53:44 +02:00
- system-security
2023-09-02 13:13:28 +02:00
- journalctl
2023-11-16 15:32:29 +01:00
- health-disc-space
2023-11-16 17:07:28 +01:00
- cleanup-disc-space
2023-11-16 15:32:29 +01:00
- health-btrfs
2023-04-18 18:24:55 +02:00
2022-03-17 16:28:57 +01:00
# 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-08-22 22:53:44 +02:00
- role: docker-nextcloud
2020-12-24 14:27:31 +01:00
vars:
2023-12-12 01:44:37 +01:00
domain: "{{domain_nextcloud}}"
2020-12-24 14:27:31 +01:00
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-08-22 22:53:44 +02:00
- role: docker-gitea
2020-12-24 14:27:31 +01:00
vars:
2023-12-12 01:44:37 +01:00
domain: "{{domain_gitea}}"
2020-12-24 14:27:31 +01:00
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
2023-12-06 14:40:18 +01:00
roles:
- role: docker-wordpress
vars:
2024-01-04 09:09:38 +01:00
domains: "{{domains_wordpress}}"
2023-12-06 14:40:18 +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-08-22 22:53:44 +02:00
- role: docker-mediawiki
2020-12-24 14:27:31 +01:00
vars:
2023-12-12 01:44:37 +01:00
domain: "{{domain_mediawiki}}"
2020-12-24 14:27:31 +01:00
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-08-22 22:53:44 +02:00
- role: docker-mybb
2020-12-24 14:27:31 +01:00
vars:
2023-12-12 01:44:37 +01:00
domains: "{{domains_mybb}}"
2020-12-24 14:27:31 +01:00
http_port: 8005
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-08-22 22:53:44 +02:00
- role: docker-yourls
2020-12-24 14:27:31 +01:00
vars:
2023-12-12 01:44:37 +01:00
domain: "{{domain_yourls}}"
2020-12-24 14:27:31 +01:00
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-08-22 22:53:44 +02:00
- role: docker-mailu
2020-12-27 19:41:35 +01:00
vars:
2023-12-12 01:44:37 +01:00
domain: "{{domain_mailu}}"
2020-12-27 19:41:35 +01:00
http_port: 8007
enable_central_database: "{{enable_central_database_mailu}}"
2024-01-09 12:52:49 +01:00
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-08-22 22:53:44 +02:00
- role: docker-elk
2020-12-30 15:41:34 +01:00
vars:
2023-12-12 01:44:37 +01:00
domain: "{{domain_elk}}"
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-08-22 22:53:44 +02:00
- role: docker-mastodon
2022-11-15 11:56:48 +01:00
vars:
2024-01-06 10:40:09 +01:00
domain: "{{domain_mastodon}}"
domains: "{{ [domain] + domains_mastodon_alternates }}"
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-08-22 22:53:44 +02:00
- role: docker-pixelfed
2022-11-16 11:17:37 +01:00
vars:
2023-12-12 01:44:37 +01:00
domain: "{{domain_pixelfed}}"
2022-11-16 11:17:37 +01:00
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-08-22 22:53:44 +02:00
- role: docker-peertube
2022-11-17 14:47:25 +01:00
vars:
2023-12-12 01:44:37 +01:00
domain: "{{domain_peertube}}"
domains: "{{ [domain] + domains_peertube }}"
2022-11-17 14:47:25 +01:00
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-08-22 22:53:44 +02:00
- role: docker-bigbluebutton
2022-12-02 12:57:15 +01:00
vars:
2023-12-12 01:44:37 +01:00
domain: "{{domain_bigbluebutton}}"
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-08-22 22:53:44 +02:00
- role: docker-funkwhale
2022-12-05 17:43:21 +01:00
vars:
2023-12-12 01:44:37 +01:00
domain: "{{domain_funkwhale}}"
2022-12-05 17:43:21 +01:00
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-08-22 22:53:44 +02:00
- role: docker-roulette-wheel
2022-12-06 20:20:02 +01:00
vars:
2023-12-12 01:44:37 +01:00
domain: "{{domain_roulette}}"
2022-12-06 20:20:02 +01:00
http_port: 8013
2023-05-25 20:58:52 +02:00
- name: setup joomla hosts
hosts: joomla
become: true
roles:
2023-08-22 22:53:44 +02:00
- role: docker-joomla
2023-05-25 20:58:52 +02:00
vars:
domain: "{{joomla_domains}}"
2023-05-25 20:58:52 +02:00
http_port: 8014
2023-05-29 13:03:57 +02:00
- name: setup attendize
hosts: attendize
become: true
roles:
2023-08-22 22:53:44 +02:00
- role: docker-attendize
2023-05-29 13:03:57 +02:00
vars:
2023-12-12 01:44:37 +01:00
domain: "{{domain_attendize}}"
2023-05-29 13:03:57 +02:00
http_port: 8015
mail_interface_http_port: 8016
2023-09-02 18:09:06 +02:00
- name: setup baserow hosts
hosts: baserow
become: true
roles:
- role: docker-baserow
vars:
2023-12-12 01:44:37 +01:00
domain: "{{domain_baserow}}"
2023-09-02 18:09:06 +02:00
http_port: 8017
2023-11-17 15:15:25 +01:00
- name: setup matomo hosts
hosts: matomo
become: true
roles:
- role: docker-matomo
vars:
2023-12-12 01:44:37 +01:00
domain: "{{domain_matomo}}"
2023-11-17 15:15:25 +01:00
http_port: 8018
2023-12-05 13:46:06 +01:00
- name: setup listmonk
hosts: listmonk
become: true
roles:
- role: docker-listmonk
vars:
2024-01-06 10:40:09 +01:00
domain: "{{domain_listmonk}}"
http_port: 8019
2023-12-08 00:34:48 +01:00
- name: setup discourse
hosts: discourse
become: true
roles:
- role: docker-discourse
vars:
2023-12-12 01:44:37 +01:00
domain: "{{domain_discourse}}"
2023-12-08 00:34:48 +01:00
http_port: 8020
2023-12-22 15:49:55 +01:00
- name: setup matrix
2023-12-12 22:36:35 +01:00
hosts: matrix
become: true
roles:
- role: docker-matrix-ansible
2023-12-22 20:49:48 +01:00
when: matrix_role == 'ansible'
2023-12-12 22:36:35 +01:00
vars:
domains:
- "{{domain_matrix_element}}"
- "{{domain_matrix_synapse}}"
2023-12-19 14:07:05 +01:00
element_domain: "{{domain_matrix_element}}"
synapse_domain: "{{domain_matrix_synapse}}"
http_port: 8021
- role: docker-matrix-compose
2023-12-22 20:49:48 +01:00
when: matrix_role == 'compose'
vars:
element_domain: "{{domain_matrix_element}}"
synapse_domain: "{{domain_matrix_synapse}}"
synapse_http_port: 8021
element_http_port: 8022
2023-12-22 15:49:55 +01:00
- name: setup open project instances
hosts: openproject
become: true
roles:
- role: docker-openproject
vars:
domain: "{{domain_openproject}}"
http_port: 8023
2023-12-12 22:36:35 +01:00
2023-12-28 00:28:30 +01:00
- name: setup gitlab hosts
hosts: gitlab
become: true
roles:
- role: docker-gitlab
vars:
domain: "{{domain_gitlab}}"
http_port: 8024
ssh_port: 2202
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-08-22 22:53:44 +02:00
- role: docker-akaunting
2022-01-18 19:08:45 +01:00
vars:
2024-01-06 10:40:09 +01:00
domain: "{{domain_akaunting}}"
http_port: 8025
- name: setup moodle instance
hosts: moodle
become: true
roles:
- role: docker-moodle
vars:
domain: "{{domain_moodle}}"
http_port: 8026
# Native Webserver Roles
- name: setup nginx-homepages
hosts: homepage
become: true
roles:
- role: nginx-homepage
vars:
domain: "{{top_domain}}"
- name: setup redirect hosts
hosts: redirect
become: true
roles:
- role: nginx-domain-redirect
vars:
domain_mappings: "{{redirect_domain_mappings}}"
- name: setup www redirect
2023-12-14 02:35:49 +01:00
hosts: www_redirect
become: true
roles:
- role: nginx-www-redirect
2024-01-10 15:57:37 +01:00
- import_playbook: playbook.destructor.yml