But it seems that when statement is too complex. Any ideas how to express that in a valid way?
"{{ 'ansible' in pkgs.results|default([])|map(attribute='name') }}"