diff --git a/setup.yml b/setup.yml index 584daad..7778cbe 100644 --- a/setup.yml +++ b/setup.yml @@ -4,14 +4,17 @@ roles: - facts +- hosts: '*' + roles: + - { role: alpine, when: ansible_distribution == 'Alpine' } + - { role: debian, when: ansible_distribution == 'Debian' } + # hosts - hosts: mgmt-gw roles: - - alpine - hosts: ceph-* roles: - - debian - frr - telegraf - ceph @@ -29,38 +32,32 @@ # virtual machines - hosts: bookstack roles: - - alpine - nginx - nginx-php - hosts: dhcp roles: - - alpine - dnsmasq - hosts: doc roles: - - alpine - nginx - nginx-php - dokuwiki - hosts: git roles: - - alpine - nginx - forgejo - hosts: kanboard roles: - - alpine - nginx - nginx-php - kanboard - hosts: matrix roles: - - alpine - postgres - nginx - synapse @@ -69,14 +66,12 @@ - hosts: monitor roles: - - alpine - nginx - influxdb - grafana - hosts: netbox roles: - - alpine - postgres - redis - nginx @@ -86,19 +81,16 @@ - hosts: unifi roles: - - debian - nginx - unifi - hosts: web-front roles: - - alpine - nginx - reverse-proxy - hosts: zid roles: - - alpine - opensmtpd - nginx - friwall