Hi
I’m trying to select a set of objects where an attribute (of type list) is not empty.
`
mylist:
- name: name1
list: - name: name2
list: - item1
- item2
`
There seems to be no jinja2 test (in the documentation at least) that allows one to test on empty / notempty.
I want to be able to do something like:
mylist>selectattr( 'list', 'notempty' )
Is there a nice Ansible/Jinja2 trick that I’m missing that can do what I want?
Thanks
Mark