computer-playbook/site.yml

111 lines
2.4 KiB
YAML
Raw Normal View History

2020-12-24 14:27:31 +01:00
---
2020-12-31 13:21:56 +01:00
- name: general host setup
hosts: all
2021-01-01 16:02:17 +01:00
become: true
2020-12-31 13:21:56 +01:00
roles:
- system-security
- system-update
2020-12-31 14:17:04 +01:00
- native-journalctl
2021-01-01 15:17:13 +01:00
- native-hostname
2020-12-31 13:21:56 +01:00
- name: setup wireguard hosts
hosts: wireguard_hosts
2021-01-01 16:02:17 +01:00
become: true
2020-12-24 14:27:31 +01:00
roles:
- native-wireguard
2020-12-31 13:21:56 +01:00
- name: setup primary backup hosts
2020-12-31 10:57:57 +01:00
hosts: primary_backup_hosts
2021-01-01 16:02:17 +01:00
become: true
pre_tasks:
- name: "check if docker is installed"
shell: pacman -Q docker
register: pacman_q_docker
ignore_errors: yes
roles:
2020-12-31 10:57:57 +01:00
- role: native-docker-volume-backup
when: "'error:' not in pacman_q_docker.stderr"
2021-01-10 20:35:37 +01:00
- role: native-primary-backup
2020-12-31 13:40:53 +01:00
- name: setup nginx hosts
hosts: nginx_hosts
2021-01-01 16:02:17 +01:00
become: true
2020-12-31 13:40:53 +01:00
roles:
- role: native-nginx
2020-12-31 10:57:57 +01:00
- name: setup replica backup hosts
hosts: replica_backup_hosts
2021-01-01 16:02:17 +01:00
become: true
2020-12-31 10:57:57 +01:00
roles:
2021-01-11 15:03:20 +01:00
- role: native-pull-primary-backups
2020-12-31 10:21:33 +01:00
- name: setup homepages
hosts: homepage_hosts
2021-01-01 16:02:17 +01:00
become: true
2020-12-24 14:27:31 +01:00
roles:
- role: native-homepage
vars:
domain: "{{top_domain}}"
2020-12-31 10:21:33 +01:00
- name: setup nextcloud hosts
hosts: nextcloud_hosts
2021-01-01 16:02:17 +01:00
become: true
2020-12-31 10:21:33 +01:00
roles:
2020-12-24 14:27:31 +01:00
- role: docker-nextcloud
vars:
domain: cloud.{{top_domain}}
http_port: 8001
2020-12-31 10:21:33 +01:00
- name: setup gitea hosts
hosts: gitea_hosts
2021-01-01 16:02:17 +01:00
become: true
2020-12-31 10:21:33 +01:00
roles:
2020-12-24 14:27:31 +01:00
- role: docker-gitea
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
hosts: wordpress_hosts
2021-01-01 16:02:17 +01:00
become: true
2020-12-31 10:21:33 +01:00
roles:
2020-12-24 14:27:31 +01:00
- role: docker-wordpress
vars:
domain: www.{{top_domain}}
http_port: 8003
2020-12-31 10:21:33 +01:00
- name: setup mediawiki hosts
hosts: mediawiki_hosts
2021-01-01 16:02:17 +01:00
become: true
2020-12-31 10:21:33 +01:00
roles:
2020-12-24 14:27:31 +01:00
- role: docker-mediawiki
vars:
domain: wiki.{{top_domain}}
http_port: 8004
2020-12-31 10:21:33 +01:00
- name: setup mybb hosts
hosts: mybb_hosts
2021-01-01 16:02:17 +01:00
become: true
2020-12-31 10:21:33 +01:00
roles:
2020-12-24 14:27:31 +01:00
- role: docker-mybb
vars:
domain: forum.{{top_domain}}
http_port: 8005
2020-12-31 10:21:33 +01:00
- name: setup yourls hosts
hosts: yourls_hosts
2021-01-01 16:02:17 +01:00
become: true
2020-12-31 10:21:33 +01:00
roles:
2020-12-24 14:27:31 +01:00
- role: docker-yourls
vars:
domain: s.{{top_domain}}
http_port: 8006
2020-12-31 10:21:33 +01:00
- name: setup mailu hosts
hosts: mailu_hosts
2021-01-01 16:02:17 +01:00
become: true
2020-12-31 10:21:33 +01:00
roles:
2020-12-27 19:41:35 +01:00
- role: docker-mailu
vars:
domain: "mail.{{top_domain}}"
http_port: 8007
2020-12-28 13:09:24 +01:00
https_port: 4431
2020-12-31 10:21:33 +01:00
- name: setup elk hosts
hosts: elk_hosts
2021-01-01 16:02:17 +01:00
become: true
2020-12-31 10:21:33 +01:00
roles:
2020-12-30 15:41:34 +01:00
- role: docker-elk
vars:
2020-12-30 20:32:28 +01:00
domain: "elk.{{top_domain}}"
2020-12-30 15:41:34 +01:00
http_port: 8008