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:
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
--
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
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
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
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