ansible/ec2.yml

83 lines
2.3 KiB
YAML

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: all
roles:
- common
- user
- influxdb
- hosts: tag_www_true
roles:
- role: backups
vars:
backups_outdir: "/cold/backups"
tags: [ backups ]
- role: dokuwiki
tags: [ web, dokuwiki ]
- role: gitea
tags: [ web, gitea ]
- role: grafana
tags: [ web, grafana ]
- role: nextcloud
tags: [ web, nextcloud ]
- role: redirect
vars:
redirect_from: "9iron.club"
redirect_to: "www.9iron.club"
redirect_webroot: "/var/www/redirect"
tags: [ web, redirect ]
- role: gitweb
vars:
gitweb_repo: "https://git.9iron.club/salt/www"
gitweb_url: "www.9iron.club"
gitweb_webroot: "/var/www/www"
tags: [ web, webroot ]
- hosts: tag_terraria_vanilla
roles:
- role: terraria
vars:
terraria_name: "1401-main"
terraria_password: "dicks"
terraria_worldsize: 3
terraria_motd: "New major release edition"
terraria_worldname: "The Home Base"
terraria_port: 7777
terraria_difficulty: 0
tags: [ gameserver, terraria ]
- role: terraria
vars:
terraria_name: "1401-farm-normal1"
terraria_password: "dicks"
terraria_worldsize: 3
terraria_motd: "New major release edition"
terraria_worldname: "Farman - Normal 1"
terraria_port: 7778
terraria_difficulty: 0
tags: [ gameserver, terraria ]
- role: terraria
vars:
terraria_name: "1401-farm-master1"
terraria_password: "dicks"
terraria_worldsize: 3
terraria_motd: "New major release edition"
terraria_worldname: "Farman - Master 1"
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
roles:
- role: ansiblehost
tags: [ ansiblehost ]