Move backups to using symlinks instead of hard directories

This should make reconfiguring backup outputs leagues easier
This commit is contained in:
Salt 2020-05-06 02:10:26 -05:00
parent 78e510211f
commit 755249febf
2 changed files with 7 additions and 1 deletions

View File

@ -15,6 +15,7 @@
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

View File

@ -10,8 +10,13 @@
path: "{{ item }}"
loop:
- "/opt/backups"
- "/backups"
- "/opt/backups/modules"
- "{{ backups_outdir }}"
- name: Create /backups symlink
file:
state: link
path: "/backups"
src: "{{ backups_outdir }}"
- name: Template out backup script
template:
src: "backup.sh"