From d270baed62c63a5240277a0d6adc733d5973cd97 Mon Sep 17 00:00:00 2001 From: Salt Date: Wed, 6 May 2020 02:18:52 -0500 Subject: [PATCH] Make backups local to hosts This actually allows for host-specific changes --- ec2.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ec2.yml b/ec2.yml index 93d3b38..30744ff 100644 --- a/ec2.yml +++ b/ec2.yml @@ -5,7 +5,6 @@ roles: - common - user - - backups - hosts: tag_www_true vars: mysql_root_password: !vault | @@ -15,12 +14,14 @@ 65323365313465316635646465376665616132653832316362363535366563363863636530313666 3036393134386131310a643734363261633166636263343538313533393738323934303137343163 39636637643035616236663364663562366133613233313139623937313531343564 - backups_outdir: "/cold/backups" 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: backups + vars: + backups_outdir: "/cold/backups" - role: gitea vars: gitea_mysql_password: !vault | @@ -73,6 +74,7 @@ nextcloud_webroot: "/var/www/nextcloud" - hosts: tag_minecraft_ultreload roles: + - role: backups - role: minecraft vars: mcname: "ftbult-reloaded-smp"