On 08. aug. 2016 02:51, Tony Owens wrote:
I actually got this to work by change key variable to:


   1. key: "{{ hostvars[groups['swarm-init'][0]]['worker'] | replace('[u',
   '') | replace(']', '')}}"

What a pia!  Surely i am doing something early in the play that is causing
me to have to replace those characters.

Your worker is a list so maybe something like this
hostvars[groups['swarm-init'][0]]['worker'][0]

--
Kai Stian Olstad

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/78ca2789-db2f-5d48-44d8-923326387f95%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to