Compare commits

...

2 Commits

Author SHA1 Message Date
6382a81f47 Remove some extraneous backup locations on web1 2021-09-18 07:27:59 -05:00
31a2371fa1 Simplify task includes 2021-09-18 07:23:03 -05:00

View File

@ -12,24 +12,16 @@
- name: ensure docker network - name: ensure docker network
docker_network: name=web docker_network: name=web
tags: [ docker ] tags: [ docker ]
- name: include tasks for apps - name: include tasks for applications
include_tasks: tasks/app/{{ task }} include_tasks: tasks/{{ item }}
with_items: with_items:
- gulagbot.yml - app/gulagbot.yml
- redis.yml - app/redis.yml
loop_control: - web/9iron.yml
loop_var: task - web/desultd.yml
tags: [ always ] - web/gitea.yml
- name: include tasks for web services - web/nextcloud.yml
include_tasks: tasks/web/{{ task }} - web/srv.yml
with_items:
- 9iron.yml
- desultd.yml
- gitea.yml
- nextcloud.yml
- srv.yml
loop_control:
loop_var: task
tags: [ always ] tags: [ always ]
roles: roles:
- role: backup - role: backup
@ -37,8 +29,6 @@
backup_s3backup_list_extra: backup_s3backup_list_extra:
- /app/gitea/gitea - /app/gitea/gitea
- /data - /data
- /var/www/nc.desu.ltd
- /var/www/srv.9iron.club
- /srv/desu.ltd - /srv/desu.ltd
backup_s3backup_exclude_list_extra: backup_s3backup_exclude_list_extra:
- /var/lib/gitea/log - /var/lib/gitea/log
@ -89,21 +79,12 @@
- name: ensure docker network - name: ensure docker network
docker_network: name=web docker_network: name=web
tags: [ docker ] tags: [ docker ]
- name: include tasks for apps - name: include tasks for applications
include_tasks: tasks/app/{{ task }} include_tasks: tasks/{{ item }}
with_items: with_items:
- redis.yml - app/redis.yml
loop_control: - web/peertube.yml
loop_var: task - web/pleroma.yml
tags: [ always ]
- name: include tasks for web services
include_tasks: tasks/web/{{ task }}
with_items:
- peertube.yml
- pleroma.yml
- ingress-generic.yml
loop_control:
loop_var: task
tags: [ always ] tags: [ always ]
roles: roles:
- role: backup - role: backup
@ -129,21 +110,13 @@
- name: ensure docker network - name: ensure docker network
docker_network: name=web docker_network: name=web
tags: [ docker ] tags: [ docker ]
- name: include tasks for apps - name: include tasks for applications
include_tasks: tasks/app/{{ task }} include_tasks: tasks/{{ item }}
with_items: with_items:
- redis.yml - app/redis.yml
loop_control: - web/movienight.yml
loop_var: task - web/netbox.yml
tags: [ always ] - web/nagios.yml
- name: include tasks for web services
include_tasks: tasks/web/{{ task }}
with_items:
- movienight.yml
- netbox.yml
- nagios.yml
loop_control:
loop_var: task
tags: [ always ] tags: [ always ]
roles: roles:
- role: backup - role: backup