mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-05 09:24:12 +01:00
43eb814bcf
These roles are very similar and can be merged into a single new role. Note: The archive mirror is changed from a 4-hour sync to minutely for conformity with the other two mirrors. In practice this doesn't matter as it was already taking over 4 hours to finish and was starting again right after its previous run.
19 lines
612 B
YAML
19 lines
612 B
YAML
- name: Common playbook for mirrors
|
|
hosts: mirrors
|
|
remote_user: root
|
|
roles:
|
|
- { role: common }
|
|
- { role: firewalld }
|
|
- { role: wireguard }
|
|
- { role: sshd }
|
|
- { role: root_ssh }
|
|
- { role: certbot }
|
|
- { role: nginx }
|
|
- { role: syncrepo, tags: ['nginx'] }
|
|
- { role: mirrorsync }
|
|
- { role: archweb, when: archweb_mirrorcheck_locations is defined, archweb_site: false, archweb_services: false, archweb_mirrorcheck: true }
|
|
- { role: prometheus_exporters }
|
|
- { role: promtail }
|
|
- { role: fail2ban }
|
|
- { role: geo_dns, when: "'geo_mirrors' in group_names" }
|