Instead of pinging each host to see if it’s Windows. Make sure to set the platform at least for such hosts.
88 lines
1.1 KiB
YAML
88 lines
1.1 KiB
YAML
# common stuff
|
|
- name: Get NetBox and other data
|
|
hosts: '*'
|
|
gather_facts: false
|
|
roles:
|
|
- facts
|
|
|
|
- name: Set up base system
|
|
hosts: '*'
|
|
roles:
|
|
- { role: alpine, when: ansible_distribution == 'Alpine' }
|
|
- { role: debian, when: ansible_distribution == 'Debian' }
|
|
- { role: windows, when: ansible_os_family == 'Windows' }
|
|
|
|
# hosts
|
|
- 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
|