Fix filters
This commit is contained in:
parent
4030815cc8
commit
eda4279a17
|
@ -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 }}"
|
||||||
|
|
Loading…
Reference in a new issue