diff --git a/roles/arr/templates/compose.yaml.jinja b/roles/arr/templates/compose.yaml.jinja index 19181dd..c61e3d0 100644 --- a/roles/arr/templates/compose.yaml.jinja +++ b/roles/arr/templates/compose.yaml.jinja @@ -290,7 +290,7 @@ services: caddy: "{{ arrstack_gonic_subdomain }}" caddy.reverse_proxy: "{{ '{{' }}upstreams 80{{ '}}'}}" -{% if restic_enable is not undefined and not false and arrstack_restic_enable is not undefined and not false %} +{% if restic_enable|d(False) == True and arrstack_restic_enable|d(False) == True %} backup: image: mazzolino/restic hostname: "{{ ansible_hostname | default() }}" diff --git a/roles/grocy/templates/compose.yaml.jinja b/roles/grocy/templates/compose.yaml.jinja index b3b1cc0..8b75bd6 100644 --- a/roles/grocy/templates/compose.yaml.jinja +++ b/roles/grocy/templates/compose.yaml.jinja @@ -16,7 +16,7 @@ services: caddy: "{{ stack_grocy_subdomain }}" caddy.reverse_proxy: "{{ '{{' }}upstreams 80{{ '}}'}}" -{% if restic_enable is not undefined and not false and stack_grocy_restic_enable is not undefined and not false %} +{% if restic_enable|d(False) == True and stack_grocy_restic_enable|d(False) == True %} backup: image: mazzolino/restic hostname: "{{ ansible_hostname | default() }}" diff --git a/roles/paperless/templates/compose.yaml.jinja b/roles/paperless/templates/compose.yaml.jinja index 2bf7681..06dc145 100644 --- a/roles/paperless/templates/compose.yaml.jinja +++ b/roles/paperless/templates/compose.yaml.jinja @@ -65,7 +65,7 @@ services: environment: REDIS_ARGS: "--save 60 10" -{% if restic_enable is not undefined and not false and stack_paperless_restic_enable is not undefined and not false %} +{% if restic_enable|d(False) == True and stack_paperless_restic_enable|d(False) == True %} backup: image: mazzolino/restic hostname: "{{ ansible_hostname | default() }}"