Switch to using hardwritten inventory

Easier to manage this way, I feel
This commit is contained in:
Salt 2020-05-20 12:51:35 -05:00
parent 1dd4cc73a2
commit edd2e90aca
6 changed files with 19 additions and 15 deletions

View File

@ -6,7 +6,7 @@
- common
- user
- influxdb
- hosts: tag_www_true
- hosts: 9iron.club
roles:
- role: backups
vars:
@ -32,7 +32,7 @@
gitweb_url: "www.9iron.club"
gitweb_webroot: "/var/www/www"
tags: [ web, webroot ]
- hosts: tag_terraria_vanilla
- hosts: terraria.9iron.club
roles:
- role: terraria
vars:
@ -64,19 +64,7 @@
terraria_port: 7779
terraria_difficulty: 3
tags: [ gameserver, terraria ]
- hosts: tag_minecraft_ultreload
roles:
- role: backups
- role: minecraft
vars:
mcname: "ftbult-reloaded-smp"
mczip: "https://media.forgecdn.net/files/2746/974/FTBUltimateReloadedServer_1.8.0.zip"
mcforge: "1.12.2-14.23.5.2846"
mcmotd: "Going back to the roots edition"
mcport: 25565
mcgamemode: 0
tags: [ gameserver, minecraft ]
- hosts: tag_ansiblehost_true
- hosts: ansiblehosts
roles:
- role: ansiblehost
tags: [ ansiblehost ]

View File

@ -0,0 +1,3 @@
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
backups_outdir: "/cold/backups"

13
inventory/hosts.yml Normal file
View File

@ -0,0 +1,13 @@
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
all:
children:
ansiblehosts:
hosts:
9iron.club:
webservers:
hosts:
9iron.club:
gameservers:
hosts:
terraria.9iron.club: