Finally make sane our inventory?

This commit is contained in:
Salt 2020-07-30 08:52:41 -05:00
parent 81ee34092e
commit e530ab7cef
2 changed files with 24 additions and 32 deletions

View File

@ -36,16 +36,15 @@ all:
ansible_host: 172.23.100.1 ansible_host: 172.23.100.1
lap-th-e560-0: lap-th-e560-0:
ansible_host: 172.23.100.2 ansible_host: 172.23.100.2
# Webheads of all sorts 9iron.club:
webservers: vars:
zone: 9iron.club
children:
webservers-9iron:
hosts: hosts:
web1.9iron.club: web1.9iron.club:
fedi1.9iron.club: fedi1.9iron.club:
web1.cowfee.moe: gameservers-9iron:
vars:
backups_frequency: 2h
# Gameservers of all sorts
gameservers:
vars: vars:
backups_frequency: 6h backups_frequency: 6h
steam_api_key: !vault | steam_api_key: !vault |
@ -58,16 +57,12 @@ all:
6438356265656532396363323532616437353831613261323037 6438356265656532396363323532616437353831613261323037
hosts: hosts:
game1.9iron.club: game1.9iron.club:
# Individual domains
9iron.club:
vars:
zone: 9iron.club
hosts:
web1.9iron.club:
fedi1.9iron.club:
game1.9iron.club:
cowfee.moe: cowfee.moe:
vars: vars:
zone: cowfee.moe zone: cowfee.moe
children:
webservers-cofe:
hosts: hosts:
web1.cowfee.moe: web1.cowfee.moe:
vars:
backups_frequency: 2h

View File

@ -1,9 +1,6 @@
#!/usr/bin/env ansible-playbook #!/usr/bin/env ansible-playbook
# vim:ft=ansible: # vim:ft=ansible:
--- ---
- hosts: webservers
roles:
- apache-php
- hosts: fedi1.9iron.club - hosts: fedi1.9iron.club
roles: roles:
- role: backups - role: backups