This is a limitation of using limit groups.




On Sat, Jan 18, 2014 at 3:09 AM, Johannes Zillmann <[email protected]
> wrote:

> Hi guys,
>
> i have an playbook an its likely to fail with a timeout since i'm
> targeting ec2.
> So i usually retry with the --limit option.
>
> Now the thing is that every host in the play need the address of the
> provided 'master' host. Accessing it with
>
>> {{ hostvars[groups['master'][0]]['ansible_fqdn'] }}
>
> But when the master is excluded in a the retry operation because it was
> successful in the first run, the above code will fail with
>
>> {'msg': "One or more undefined variables: 'dict' object has no attribute
>> 'ansible_fqdn'", 'failed': True}
>
>
> Is there any way fixing this without dropping the use of --limit ?
>
> best regards
> Johannes
>
> --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Michael DeHaan <[email protected]>
CTO, AnsibleWorks, Inc.
http://www.ansibleworks.com/

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to