Tagged in

Jinja2

OpsOps
OpsOps
Tech blog on Linux, Ansible, Ceph, Openstack and operator-related programming
More information
Followers
638
Elsewhere
More, on Medium

Filtering away an undefined value from a list in Ansible

You can see the original puzzle here, the interesting part is ‘how to remove undefined elements from a list?’

Incoming list looks like this:

[u'solomon-test-2', u'solomon-test'…