bob/roles
Marty Oehme 4a5a0beca1
restic: Fix backup container conditionals
Change the inclusion of backup containers so they actually work. They
check that restic is enabled globally, and that restic is enabled for
the individual stack they belong to. If either of the conditions is not
met they do not deploy.

This way we can simply enable restic globally with `restic_enable` and
by default all stacks will be backed up. But if we want to exclude
specific stacks from backups we can do so with the individual
`<role>_restic_enable = False` variable.

Finally found a good version of doing so with the help of the following
medium article: https://medium.com/opsops/is-defined-in-ansible-d490945611ae
which basically makes use of default fallbacks instead.
2025-07-19 10:23:23 +02:00
..
arr restic: Fix backup container conditionals 2025-07-19 10:23:23 +02:00
caddy repo: Rename compose templates to compose.yaml.jinja 2025-07-18 21:49:32 +02:00
grocy restic: Fix backup container conditionals 2025-07-19 10:23:23 +02:00
incus-install/tasks repo: Move ansible setup to root dir 2025-07-17 18:07:52 +02:00
paperless restic: Fix backup container conditionals 2025-07-19 10:23:23 +02:00
restic restic: Only set backup hostname if we have ansible fact 2025-07-19 10:23:21 +02:00
system repo: Move ansible setup to root dir 2025-07-17 18:07:52 +02:00