2023-03-15 09:58:12 +01:00
|
|
|
- name: "Set up a self-hosted server"
|
|
|
|
hosts: "{{ target if target is defined else 'mash_servers' }}"
|
|
|
|
become: true
|
|
|
|
|
|
|
|
roles:
|
|
|
|
# This role has no tasks at all
|
|
|
|
- role: galaxy/com.devture.ansible.role.playbook_help
|
|
|
|
|
|
|
|
# This role has no tasks at all
|
|
|
|
- role: galaxy/com.devture.ansible.role.systemd_docker_base
|
|
|
|
|
|
|
|
- when: mash_playbook_docker_installation_enabled | bool
|
|
|
|
role: galaxy/geerlingguy.docker
|
|
|
|
vars:
|
|
|
|
docker_install_compose: false
|
|
|
|
tags:
|
|
|
|
- setup-docker
|
|
|
|
- setup-all
|
|
|
|
- install-docker
|
|
|
|
- install-all
|
|
|
|
|
|
|
|
- when: devture_docker_sdk_for_python_installation_enabled | bool
|
|
|
|
role: galaxy/com.devture.ansible.role.docker_sdk_for_python
|
|
|
|
tags:
|
|
|
|
- setup-docker
|
|
|
|
- setup-all
|
|
|
|
- install-docker
|
|
|
|
- install-all
|
|
|
|
|
|
|
|
- when: devture_timesync_installation_enabled | bool
|
|
|
|
role: galaxy/com.devture.ansible.role.timesync
|
|
|
|
tags:
|
|
|
|
- setup-timesync
|
|
|
|
- setup-all
|
|
|
|
- install-timesync
|
|
|
|
- install-all
|
|
|
|
|
|
|
|
- role: mash/playbook_base
|
|
|
|
|
2023-03-18 12:24:46 +01:00
|
|
|
- role: galaxy/swap
|
|
|
|
|
2023-03-18 21:47:41 +01:00
|
|
|
- when: system_security_ssh_enabled | bool
|
|
|
|
role: galaxy/ssh
|
2023-03-18 20:50:27 +01:00
|
|
|
|
2023-03-18 21:47:41 +01:00
|
|
|
- when: system_security_fail2ban_enabled | bool
|
|
|
|
role: galaxy/fail2ban
|
2023-03-18 21:04:44 +01:00
|
|
|
|
2023-03-15 09:58:12 +01:00
|
|
|
# This role exposes various tags (setup-postgres, setup-all, upgrade-postgres, import-postgres, etc.), so we don't tag it here.
|
|
|
|
- role: galaxy/com.devture.ansible.role.postgres
|
|
|
|
|
2023-03-17 15:40:08 +01:00
|
|
|
- role: galaxy/com.devture.ansible.role.postgres_backup
|
|
|
|
|
2023-03-15 09:58:12 +01:00
|
|
|
- role: galaxy/com.devture.ansible.role.container_socket_proxy
|
|
|
|
|
|
|
|
- role: galaxy/com.devture.ansible.role.traefik
|
|
|
|
|
2023-03-24 17:01:21 +01:00
|
|
|
- role: galaxy/adguard_home
|
|
|
|
|
2023-04-17 08:42:47 +02:00
|
|
|
- role: galaxy/appsmith
|
|
|
|
|
2023-04-19 12:29:15 +02:00
|
|
|
- role: galaxy/authentik
|
|
|
|
|
2023-03-17 13:25:31 +01:00
|
|
|
- role: galaxy/collabora_online
|
|
|
|
|
2023-03-18 18:27:24 +01:00
|
|
|
- role: galaxy/docker_registry
|
2023-03-19 08:14:12 +01:00
|
|
|
- role: galaxy/docker_registry_browser
|
2023-03-19 09:04:10 +01:00
|
|
|
- role: galaxy/docker_registry_purger
|
2023-03-18 18:27:24 +01:00
|
|
|
|
2023-03-24 09:58:39 +01:00
|
|
|
- role: galaxy/firezone
|
|
|
|
|
2023-03-20 07:40:15 +01:00
|
|
|
- role: galaxy/focalboard
|
|
|
|
|
2023-04-02 19:13:35 +02:00
|
|
|
- role: galaxy/funkwhale
|
2023-04-02 18:19:58 +02:00
|
|
|
|
2023-03-16 17:26:06 +01:00
|
|
|
- role: galaxy/gitea
|
|
|
|
|
2023-03-24 13:11:13 +01:00
|
|
|
- role: galaxy/gotosocial
|
|
|
|
|
2023-03-20 18:14:45 +01:00
|
|
|
- role: galaxy/grafana
|
|
|
|
|
2023-04-10 12:44:48 +02:00
|
|
|
- role: galaxy/mariadb
|
|
|
|
|
2023-03-15 09:58:12 +01:00
|
|
|
- role: galaxy/miniflux
|
|
|
|
|
2023-04-12 12:49:51 +02:00
|
|
|
- role: galaxy/mrs
|
|
|
|
|
2023-04-11 16:39:02 +02:00
|
|
|
- role: galaxy/healthchecks
|
|
|
|
|
2023-03-19 21:10:42 +01:00
|
|
|
- role: galaxy/hubsite
|
|
|
|
|
2023-04-02 15:39:59 +02:00
|
|
|
- role: galaxy/jitsi
|
|
|
|
|
|
|
|
- role: galaxy/keycloak
|
|
|
|
|
2023-04-14 08:07:11 +02:00
|
|
|
- role: galaxy/lago
|
2023-04-14 07:58:46 +02:00
|
|
|
|
2023-03-29 10:42:39 +02:00
|
|
|
- role: galaxy/navidrome
|
|
|
|
|
2023-03-26 16:13:57 +02:00
|
|
|
- role: galaxy/netbox
|
|
|
|
|
2023-03-17 10:39:04 +01:00
|
|
|
- role: galaxy/nextcloud
|
|
|
|
|
2023-03-29 13:13:17 +02:00
|
|
|
- role: galaxy/owncast
|
|
|
|
|
2023-03-17 14:48:15 +01:00
|
|
|
- role: galaxy/peertube
|
2023-03-17 14:43:45 +01:00
|
|
|
|
2023-03-20 16:54:01 +01:00
|
|
|
- role: galaxy/prometheus
|
2023-03-17 23:13:30 +01:00
|
|
|
- role: galaxy/prometheus_node_exporter
|
2023-03-20 16:54:01 +01:00
|
|
|
- role: galaxy/prometheus_blackbox_exporter
|
2023-03-17 23:13:30 +01:00
|
|
|
|
2023-03-15 09:58:12 +01:00
|
|
|
- role: galaxy/radicale
|
|
|
|
|
2023-03-17 22:27:52 +01:00
|
|
|
- role: galaxy/redmine
|
|
|
|
|
2023-03-17 14:43:45 +01:00
|
|
|
- role: galaxy/redis
|
|
|
|
|
2023-03-28 15:02:22 +02:00
|
|
|
- role: galaxy/soft_serve
|
|
|
|
|
2023-03-23 10:32:59 +01:00
|
|
|
- role: galaxy/syncthing
|
|
|
|
|
2023-03-16 11:05:21 +01:00
|
|
|
- role: galaxy/vaultwarden
|
|
|
|
|
2023-03-15 09:58:12 +01:00
|
|
|
- role: galaxy/uptime_kuma
|
|
|
|
|
2023-04-29 08:30:26 +02:00
|
|
|
- role: galaxy/wg_easy
|
|
|
|
|
2023-03-16 17:26:06 +01:00
|
|
|
- role: galaxy/com.devture.ansible.role.woodpecker_ci_server
|
|
|
|
- role: galaxy/com.devture.ansible.role.woodpecker_ci_agent
|
|
|
|
|
2023-03-20 10:03:59 +01:00
|
|
|
- role: galaxy/aux
|
|
|
|
|
2023-03-15 09:58:12 +01:00
|
|
|
- when: devture_systemd_service_manager_enabled | bool
|
|
|
|
role: galaxy/com.devture.ansible.role.systemd_service_manager
|
|
|
|
|
|
|
|
# This is pretty much last, because we want it to better serve as a "last known good configuration".
|
|
|
|
# See: https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2217#issuecomment-1301487601
|
|
|
|
- when: devture_playbook_state_preserver_enabled | bool
|
|
|
|
role: galaxy/com.devture.ansible.role.playbook_state_preserver
|
|
|
|
tags:
|
|
|
|
- setup-all
|
|
|
|
- install-all
|
|
|
|
|
|
|
|
- role: galaxy/com.devture.ansible.role.playbook_runtime_messages
|