servers/setup.yml
Timotej Lazar 91de26af57 Add windows role
Set up network interfaces and SSH for Windows hosts.

We can’t gather facts before we know which remote shell to use, so
first run a win_ping to determine if a given host is running Windows.
2025-05-09 17:26:07 +02:00

89 lines
1.1 KiB
YAML

# common stuff
- hosts: '*'
gather_facts: false
roles:
- facts
- hosts: '*'
roles:
- { role: alpine, when: ansible_distribution == 'Alpine' }
- { role: debian, when: ansible_distribution == 'Debian' }
- { role: windows, when: ansible_os_family == 'Windows' }
# hosts
- hosts: mgmt-gw
roles:
- hosts: ceph-*
roles:
- frr
- telegraf
- ceph
- hosts: proxmox-backup
roles:
- proxmox-backup
- frr
- hosts: pve-rc-*, pve-lab-*
roles:
- proxmox
- frr
# virtual machines
- hosts: bookstack
roles:
- nginx
- nginx-php
- hosts: dhcp
roles:
- dnsmasq
- hosts: doc
roles:
- dokuwiki
- hosts: git
roles:
- forgejo
- hosts: kanboard
roles:
- kanboard
- hosts: matrix
roles:
- postgres
- synapse
vars:
user: synapse
- hosts: monitor
roles:
- influxdb
- grafana
- hosts: netbox
roles:
- postgres
- netbox
vars:
user: netbox
- hosts: unifi
roles:
- unifi
- hosts: vrata
roles:
- ocserv
- hosts: web-front
roles:
- reverse-proxy
- hosts: zid
roles:
- opensmtpd
- friwall