Hello All,

I have been struggling for quite a while now sharing some registered
variables during ec2 instances provisioning hosts: localhost with their
configuration hosts: tag_Name_tagname of ec2.

Kindly have a look at this sample http://pastie.org/10378851 . In hosts:
tag_MName_myappdblivemaster , I need to set the hostname of all the
instances created during - name: Launch myapp DB Instances Availability A
and - name: Launch myapp DB Instances Availability B.

Because I have not found any way of using the variable myapp_db_ec2_a and
myapp_db_ec2_b in the other hosts like tag_MName_myappdblivemaster in
particular, I had to break the run, copy the hostnames from the console and
paste in in playbook before this can be successful. When I try with
hostvars['localhost'] , I get basically nothing to work with.

Is there any thing I am missing or it's not possible?

Best Regards,
-- 
Joseph Kodjo-Kuma Djomeda
check out my pains at : www.mycodingpains.com
We become what we think about ourselves........

-- 
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/CAKDXoaL5WDpGmH2zAB1hthb8suPXXMrCcx2pN2%2BbWhOF22Nz7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to