Re: [ansible-project] Re: Having troubles accessing hostvars for new host

2015-06-18 Thread Barry Kaplan
The flow is: provision.yml: -- - name: Provision rabbitmq cluster hosts: localhost connection: local gather_facts: yes tags: [provision, rabbitmq_cluster] tasks: - name: Create rabbitmq-server instance ec2: ... - include:

Re: [ansible-project] Re: Having troubles accessing hostvars for new host

2015-06-18 Thread Brian Coca
So the new hosts don't get added to the rabbitmq_server group? I assume this will happen automatically next time the inventory script runs (if tagged), but that won't happen until you run ansible again, normally you use add_hosts to temporarily add them for the 'current run'. -- Brian Coca --

Re: [ansible-project] Re: Having troubles accessing hostvars for new host

2015-06-17 Thread Barry Kaplan
Yes, the play explicitly has gather_facts:true. The debug just above the failure clearly shows the attribute is present, that's what is confusing. On Thursday, June 18, 2015 at 9:38:08 AM UTC+5:30, Brian Coca wrote: did you gather facts after creating the instances? -- You received this

Re: [ansible-project] Re: Having troubles accessing hostvars for new host

2015-06-17 Thread Brian Coca
gather_facts happens before other tasks, my question was if you gathered facts AFTER creating the new hosts -- Brian Coca -- 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

Re: [ansible-project] Re: Having troubles accessing hostvars for new host

2015-06-17 Thread Brian Coca
did you gather facts after creating the instances? -- Brian Coca -- 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

[ansible-project] Re: Having troubles accessing hostvars for new host

2015-06-17 Thread Barry Kaplan
Oh, I should have mentioned, this only happens when I have created the ec2 instances in the same play run. On a second run I don't ever seem to get this error. And this is on 1.9.2 -- You received this message because you are subscribed to the Google Groups Ansible Project group. To