Simplify rsnapshot example

This commit is contained in:
Kris Lamoureux 2021-06-05 23:40:54 -04:00
parent 38d1cd78e1
commit e3200f6ad0
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
2 changed files with 3 additions and 25 deletions

View File

@ -2,28 +2,9 @@
allow_reboot: false allow_reboot: false
manage_network: false manage_network: false
# docker
docker_users:
- vagrant
# traefik
traefik_version: latest
traefik_dashboard: true
traefik_domain: traefik.vm.krislamo.org
traefik_auth: admin:$apr1$T1l.BCFz$Jyg8msXYEAUi3LLH39I9d1 # admin:admin
#traefik_acme_email: realemail@example.com # Let's Encrypt settings
#traefik_production: true
# nginx
nginx_domain: nginx.vm.krislamo.org
nginx_name: staticsite
nginx_repo_url: https://git.krislamo.org/kris/example-website/
nginx_auth: admin:$apr1$T1l.BCFz$Jyg8msXYEAUi3LLH39I9d1 # admin:admin
nginx_version: latest
# rsnapshot # rsnapshot
rsnapshot: rsnapshot:
- name: webserver - name: localhost
intervals: intervals:
- name: hourly - name: hourly
count: 6 count: 6
@ -38,7 +19,7 @@ rsnapshot:
#minute: 0 #minute: 0
#hour: 0 #hour: 0
backups: backups:
- name: staticsite - name: config
source: "/opt/nginx/{{ nginx_name }}/" source: /etc/
- name: logs - name: logs
source: /var/log/ source: /var/log/

View File

@ -5,7 +5,4 @@
- host_vars/rsnapshot.yml - host_vars/rsnapshot.yml
roles: roles:
- base - base
- docker
- traefik
- nginx
- rsnapshot - rsnapshot