ansible/ec2.yml

60 lines
2.4 KiB
YAML

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: ec2
roles:
- common
- user
- hosts: tag_minecraft_botaniapack
vars:
mcname: "botaniapack-1"
mczip: "https://www.assburgers.club/files/botaniapack-1.zip"
mcforge: "1.10.2-12.18.3.2511"
mcmotd: "First time on 9iron edition"
roles:
- minecraft
- hosts: tag_ansiblehost_true
roles:
- ansiblehost
- hosts: tag_www_true
vars:
mysql_root_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
62316565376333396465333931356163343363663063636233653536373033396230626639613964
3037613839373833646234626236643430393364643131610a333539373533663434373935376130
65323365313465316635646465376665616132653832316362363535366563363863636530313666
3036393134386131310a643734363261633166636263343538313533393738323934303137343163
39636637643035616236663364663562366133613233313139623937313531343564
acme_directory: "https://acme-v02.api.letsencrypt.org/directory"
#acme_directory: "https://acme-staging-v02.api.letsencrypt.org/directory"
acme_version: 2
acme_webroot: "/var/www/acme"
roles:
- role: redirect
vars:
redirect_from: "9iron.club"
redirect_to: "www.9iron.club"
redirect_webroot: "/var/www/redirect"
- role: gitweb
vars:
gitweb_repo: "https://gitlab.com/rehashedsalt/www"
gitweb_url: "www.9iron.club"
gitweb_webroot: "/var/www/www"
- role: dokuwiki
vars:
dokuwiki_tgz: "https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz"
dokuwiki_url: "wiki.9iron.club"
dokuwiki_webroot: "/var/www/dokuwiki"
- role: nextcloud
vars:
nextcloud_mysql_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
37633035633563646266346264333636393931323664313166633133653461646333643731636661
3966666665396239346662613764353333393038663762340a313236396331623061376462356437
66373234633939393034353439393465663131303661393164303335336435653734613064663964
3332313764623133630a393731613236373837316437653265636663666261383135636662373566
61373135303632336237333836353764646639633735323566346366623766646266
nextcloud_tarbz2: "https://download.nextcloud.com/server/releases/nextcloud-18.0.0.tar.bz2"
nextcloud_url: "nc.9iron.club"
nextcloud_webroot: "/var/www/nextcloud"