Updated hosts.yml to support new inventory syntax
While reworked group structure to be more useful and powerfulmaster
parent
827865b44c
commit
7d858342e2
@ -1,41 +1,85 @@
|
|||||||
# Public Servers
|
version: 2
|
||||||
|
|
||||||
hatoria.banananet.work:
|
groups: # a:b meaning b is a, can be nested
|
||||||
- hetzner_server
|
|
||||||
- os_debian
|
|
||||||
- bootstrap
|
|
||||||
- public_available
|
|
||||||
- wireguard_backbones
|
|
||||||
|
|
||||||
nvak.banananet.work:
|
# hardware structure
|
||||||
- contabo_vserver
|
dev_known:
|
||||||
|
barebones:
|
||||||
|
- rented_barebones # sub group
|
||||||
|
# list of all known barebone device groups
|
||||||
|
- dev_surface3 # Microsoft Surface 3
|
||||||
|
virtual:
|
||||||
|
- rented_vserver # sub group
|
||||||
|
dev_unknown: # for unknown device kinds
|
||||||
|
|
||||||
|
# structure of rented servers
|
||||||
|
rented:
|
||||||
|
rented_barebones:
|
||||||
|
- hetzner_server # https://robot.your-server.de/server
|
||||||
|
rented_vserver:
|
||||||
|
- bwcloud_vserver # https://portal.bw-cloud.org/
|
||||||
|
- contabo_vserver # https://my.contabo.com/vps
|
||||||
|
|
||||||
|
# OS structure
|
||||||
|
os_known: # list of all known OS derivates
|
||||||
- os_debian
|
- os_debian
|
||||||
- bootstrap
|
- os_raspbian
|
||||||
- public_available
|
|
||||||
- wireguard_backbones
|
|
||||||
|
|
||||||
morska.banananet.work:
|
# applications
|
||||||
- bwcloud_vserver
|
|
||||||
|
bootstrapable: # which OSes/hosts can be bootstraped
|
||||||
- os_debian
|
- os_debian
|
||||||
- bootstrap
|
- os_raspbian
|
||||||
- public_available
|
|
||||||
- wireguard_backbones
|
|
||||||
|
|
||||||
rurapenthe.banananet.work:
|
|
||||||
- bwcloud_vserver
|
group_aliasses: # a:b meaning a equals b, should only depend on groups not defined here
|
||||||
|
|
||||||
|
# unknown groups
|
||||||
|
dev_unknown: "!dev_known"
|
||||||
|
os_unknown: "!os_known"
|
||||||
|
|
||||||
|
# applications
|
||||||
|
bootstrap: "bootstrapable:!no_bootstrap" # which hosts should be bootstraped
|
||||||
|
common_roles: "!no_common_roles"
|
||||||
|
wireguard_backbones: "public_available:!no_wireguard_automatic"
|
||||||
|
wireguard_clients: "!public_available:!no_wireguard_automatic"
|
||||||
|
|
||||||
|
|
||||||
|
host_groups: # group: host: [*groups]
|
||||||
|
|
||||||
|
no_defaults: # do not include in all default playbooks / roles
|
||||||
|
_all:
|
||||||
|
- no_bootstrap # do not setup sudo bootstrap
|
||||||
|
- no_common_roles # do not include in common roles
|
||||||
|
- no_wireguard_automatic # do not assign wireguard role automatic, hosts may be excluded from wireguard or assigned to their wireguard role manually
|
||||||
|
|
||||||
|
rented:
|
||||||
|
_all:
|
||||||
|
- public_available # rented are public available
|
||||||
|
|
||||||
|
# to group similar devices together
|
||||||
|
|
||||||
|
common_server: # public common servers
|
||||||
|
_all:
|
||||||
- os_debian
|
- os_debian
|
||||||
- bootstrap
|
hatoria.banananet.work:
|
||||||
- public_available
|
- hetzner_server
|
||||||
- wireguard_backbones
|
nvak.banananet.work:
|
||||||
|
- contabo_vserver
|
||||||
|
morska.banananet.work:
|
||||||
|
- bwcloud_vserver
|
||||||
|
rurapenthe.banananet.work:
|
||||||
|
- bwcloud_vserver
|
||||||
|
|
||||||
# Location Eridon
|
|
||||||
|
|
||||||
## Local Servers
|
single_hosts: # a:b meaning a is b, cannot be nested
|
||||||
hardie.eridon.banananet.work:
|
|
||||||
- bootstrap
|
# Local Servers
|
||||||
|
hardie.eridon.banananet.work:
|
||||||
|
- os_debian
|
||||||
|
|
||||||
## Embedded Devices
|
# Embedded Devices
|
||||||
wgpanel.eridon.banananet.work:
|
wgpanel.eridon.banananet.work:
|
||||||
- dev_surface3
|
- dev_surface3
|
||||||
- os_debian
|
- os_debian
|
||||||
- bootstrap
|
- no_wireguard_automatic # no wireguard
|
||||||
|
Loading…
Reference in New Issue