Define machine-specific backups

This commit is contained in:
Salt 2020-12-24 09:19:12 -06:00
parent 00fb2bb32e
commit 58a9827b28
5 changed files with 27 additions and 3 deletions

View File

@ -4,6 +4,12 @@
---
- hosts: psql1.desu.ltd
roles:
- role: backup
vars:
backup_s3backup_list_extra:
- /var/lib/postgresql
become: yes
tags: [ backup ]
- role: postgresql
vars:
postgresql_global_config_options:

View File

@ -19,6 +19,13 @@
become: yes
tags: [ desktop, python, cap ]
roles:
- role: backup
vars:
backup_s3backup_tar_args_extra: h
backup_s3backup_list_extra:
- /home/salt/.backup/
become: yes
tags: [ backup ]
- role: desktop
become: yes
tags: [ desktop ]

View File

@ -4,6 +4,13 @@
---
- hosts: game1.thefuck.how
roles:
- role: backup
vars:
backup_s3backup_list_extra:
- /opt/minecraft/valhelsia/world
- /opt/factorio
become: yes
tags: [ backup ]
- role: minecraft
vars:
minecraft_name: valhelsia

View File

@ -4,6 +4,13 @@
---
- hosts: web1.desu.ltd
roles:
- role: backup
vars:
backup_s3backup_list_extra:
- /var/lib/gitea
- /var/www/html/nextcloud
become: yes
tags: [ backup ]
- role: apache
vars:
apache_remove_default_vhost: yes

View File

@ -7,9 +7,6 @@
- role: common
become: yes
tags: [ common ]
- role: backup
become: yes
tags: [ backup, common ]
- role: ansible-pull
become: yes
tags: [ ansible, common ]