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 - hosts: psql1.desu.ltd
roles: roles:
- role: backup
vars:
backup_s3backup_list_extra:
- /var/lib/postgresql
become: yes
tags: [ backup ]
- role: postgresql - role: postgresql
vars: vars:
postgresql_global_config_options: postgresql_global_config_options:

View File

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

View File

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

View File

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

View File

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