map extract not working?

Hi all,

I have a group named cluster in my inventory file, which has 2 nodes, swarm1 & swarm2.

and the following playbook, trying to use map(‘extract’) to get the IP address of the other node. I can print out the ip just fine by accessing the hostvars directly, but not when i use map. what’s wrong?

I would say your syntax is wrong. Apparently ansible does not know
your filter called extract.

Johannes