aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/playbook.yml
blob: 976752e2925e62750e91dd57b89f0fd572b262b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
- name: Deploy common services
  hosts: all
  roles:
    - common
    - pydis-mtls
    - wireguard
    - munin-node

- name: Deploy services to Netcup nodes
  hosts: netcup
  roles:
    - certbot
    - ci-user
    - alloy
    - nftables
    - prometheus-node-exporter
    - fail2ban
    - podman
    - unattended-upgrades

- name: Deploy mailservers
  hosts: mail
  roles:
    - opendkim
    - opendmarc
    - opendmarc-inbox
    - sasl
    - dovecot
    - dovecot-monitoring
    - spamassassin
    - postfix
    - prometheus-postfix-exporter
    - role: dmarc_metrics_exporter
      vars:
        imap_username: "{{ dmarc_metrics_imap_username }}" # noqa: var-naming[no-role-prefix]
        imap_password: "{{ dmarc_metrics_imap_password }}" # noqa: var-naming[no-role-prefix]
        imap_host: "{{ dmarc_metrics_imap_host }}" # noqa: var-naming[no-role-prefix]
        folder_inbox: "{{ dmarc_metrics_folder_inbox }}" # noqa: var-naming[no-role-prefix]
        folder_done: "{{ dmarc_metrics_folder_done }}" # noqa: var-naming[no-role-prefix]
        folder_error: "{{ dmarc_metrics_folder_error }}" # noqa: var-naming[no-role-prefix]
        listen_addr: "{{ ansible_wg0.ipv4.address }}" # noqa: var-naming[no-role-prefix]
      tags:
        - role::dmarc-metrics-exporter

- name: Deploy our monitoring stack
  hosts: monitoring
  roles:
    - rrdstats
    - prometheus
    - prometheus-blackbox-exporter
    - munin

- name: Deploy nginx to hosts
  hosts: nginx
  roles:
    - nginx
    - nginx-geoip
    - nginx-cloudflare-mtls

- name: Deploy Git mirrors
  hosts: nginx
  roles:
    - git-mirrors

- name: Deploy our PostgreSQL database hosts
  hosts: databases
  roles:
    - postgres
    - prometheus-postgres-exporter

- name: Deploy our LDAP server environment to the LDAP host
  hosts: ldap
  roles:
    - ldap

- name: Deploy Jitsi
  hosts: jitsi
  roles:
    - jitsi