Fix filters

This commit is contained in:
Sam A. 2024-10-20 23:56:28 +02:00
parent 4030815cc8
commit eda4279a17
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -125,8 +125,8 @@ apps_vars:
version: '1.7.1' version: '1.7.1'
apps_exclude: [] apps_exclude: []
apps_include: "{{ apps_vars | dict2items | map(attribute='key') | list | difference(apps_exclude) }}" apps_include: "{{ apps_vars | dict2items | map(attribute='key') | list | community.general.lists_difference(apps_exclude) }}"
apps_backup: "{{ apps_vars | dict2items | selectattr('value.backup', 'true') | map(attribute='key') | list | intersect(apps_include) }}" apps_backup: "{{ apps_vars | dict2items | selectattr('value.backup', 'true') | map(attribute='key') | list | community.general.lists_intersect(apps_include) }}"
apps_proxied: "{{ apps_vars | dict2items | selectattr('value.domain', 'defined') | map(attribute='key') | list | intersect(apps_include) }}" apps_proxied: "{{ apps_vars | dict2items | selectattr('value.domain', 'defined') | map(attribute='key') | list | community.general.lists_intersect(apps_include) }}"
apps_torified: "{{ apps_vars | dict2items | selectattr('value.onion', 'defined') | map(attribute='key') | list | intersect(apps_include) }}" apps_torified: "{{ apps_vars | dict2items | selectattr('value.onion', 'defined') | map(attribute='key') | list | community.general.lists_intersect(apps_include) }}"
apps_senders: "{{ apps_vars | dict2items | selectattr('key', 'in', apps_include) | selectattr('value.sender', 'true') | map(attribute='value.domain') | list }}" apps_senders: "{{ apps_vars | dict2items | selectattr('key', 'in', apps_include) | selectattr('value.sender', 'true') | map(attribute='value.domain') | list }}"