Intersect apps_backup with apps_include
This commit is contained in:
parent
646bfa4e85
commit
c816f3d551
|
@ -56,7 +56,7 @@ apps_vars:
|
|||
version: '1.6.0'
|
||||
|
||||
apps_include: "{{ apps_vars | dict2items | map(attribute='key') | list }}"
|
||||
apps_backup: "{{ apps_vars | dict2items | selectattr('value.backup', 'true') | map(attribute='key') | list }}"
|
||||
apps_backup: "{{ apps_vars | dict2items | selectattr('value.backup', 'true') | map(attribute='key') | list | intersect(apps_include) }}"
|
||||
apps_proxied: "{{ apps_vars | dict2items | selectattr('value.domain', 'defined') | map(attribute='key') | list | intersect(apps_include) }}"
|
||||
|
||||
apps_sender_domains:
|
||||
|
|
|
@ -31,9 +31,7 @@ services:
|
|||
- "/var/run/docker.sock:/var/run/docker.sock:rw"
|
||||
- "/usr/libexec/docker/cli-plugins/docker-compose:/usr/libexec/docker/cli-plugins/docker-compose:ro"
|
||||
{% for app in apps_backup %}
|
||||
{% if app in apps_include %}
|
||||
- "{{ apps_data_root }}/{{ app }}/data:/mnt/volumes/{{ app }}:ro"
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
prune:
|
||||
|
|
Loading…
Reference in a new issue