Move backups to using symlinks instead of hard directories
This should make reconfiguring backup outputs leagues easier
This commit is contained in:
parent
78e510211f
commit
755249febf
1
ec2.yml
1
ec2.yml
@ -15,6 +15,7 @@
|
|||||||
65323365313465316635646465376665616132653832316362363535366563363863636530313666
|
65323365313465316635646465376665616132653832316362363535366563363863636530313666
|
||||||
3036393134386131310a643734363261633166636263343538313533393738323934303137343163
|
3036393134386131310a643734363261633166636263343538313533393738323934303137343163
|
||||||
39636637643035616236663364663562366133613233313139623937313531343564
|
39636637643035616236663364663562366133613233313139623937313531343564
|
||||||
|
backups_outdir: "/cold/backups"
|
||||||
acme_directory: "https://acme-v02.api.letsencrypt.org/directory"
|
acme_directory: "https://acme-v02.api.letsencrypt.org/directory"
|
||||||
#acme_directory: "https://acme-staging-v02.api.letsencrypt.org/directory"
|
#acme_directory: "https://acme-staging-v02.api.letsencrypt.org/directory"
|
||||||
acme_version: 2
|
acme_version: 2
|
||||||
|
@ -10,8 +10,13 @@
|
|||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
loop:
|
loop:
|
||||||
- "/opt/backups"
|
- "/opt/backups"
|
||||||
- "/backups"
|
|
||||||
- "/opt/backups/modules"
|
- "/opt/backups/modules"
|
||||||
|
- "{{ backups_outdir }}"
|
||||||
|
- name: Create /backups symlink
|
||||||
|
file:
|
||||||
|
state: link
|
||||||
|
path: "/backups"
|
||||||
|
src: "{{ backups_outdir }}"
|
||||||
- name: Template out backup script
|
- name: Template out backup script
|
||||||
template:
|
template:
|
||||||
src: "backup.sh"
|
src: "backup.sh"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user