Re-organize host inventory

This commit is contained in:
polyfloyd 2022-10-08 20:03:12 +02:00
parent cb7ab2782a
commit b1add6ce2c
8 changed files with 33 additions and 18 deletions

View file

@ -1,6 +1,5 @@
---
- hosts: bank
vars:
roles:
- common
- bank

4
common.yaml Normal file
View file

@ -0,0 +1,4 @@
---
- hosts: debian
roles:
- common

View file

@ -0,0 +1 @@
mqtt_internal_public_host: bitlair.nl

3
group_vars/music.yaml Normal file
View file

@ -0,0 +1,3 @@
music_domain: music.bitlair.nl
acme_san_domains:
- [ music.bitlair.nl ]

11
hosts
View file

@ -1,11 +0,0 @@
[bank]
bank.bitlair.nl
[bar]
bank-pi.bitlair.nl
[mqtt_internal]
mqtt.bitlair.nl
[music]
music.bitlair.nl

25
hosts.yaml Normal file
View file

@ -0,0 +1,25 @@
all:
children:
raspi:
hosts:
bank-pi.bitlair.nl:
debian:
children:
bank:
hosts:
bank.bitlair.nl:
git:
hosts:
git.bitlair.nl:
lights:
hosts:
lights.bitlair.nl:
mqtt_internal:
hosts:
mqtt.bitlair.nl:
music:
hosts:
music.bitlair.nl:
www:
hosts:
cyber.bitlair.nl:

View file

@ -1,7 +1,5 @@
---
- hosts: mqtt_internal
vars:
mqtt_internal_public_host: bitlair.nl
roles:
- common
- mqtt-internal

View file

@ -1,9 +1,5 @@
---
- hosts: music
vars:
music_domain: music.bitlair.nl
acme_san_domains:
- [ music.bitlair.nl ]
roles:
- common
- acme