Absolutely! Read this chapter about "hostvars":
http://docs.ansible.com/playbooks_variables.html#magic-variables-and-how-to-access-information-about-other-hosts On Tue, Aug 12, 2014 at 2:53 AM, Muhammad Yusuf <[email protected]> wrote: > i got some situation : > host file : development > [master] > 1.2.3.4 > [client] > 1.2.3.5 dump_var="testing" > 1.2.3.10 dump_var="test2" > > yml file : > site.yml > --- > - hosts: master > gather_facts: false > sudo: true > remote_user: root > roles: > - sample > > ================== > the question is: > can master get the dump_var variable ? is it possible? > i want to get that variable and loop it inside roles "sample" > > thanks > > -- > 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/65eb61cf-c24f-4d4b-abf0-0b8850de0109%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/65eb61cf-c24f-4d4b-abf0-0b8850de0109%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BnsWgwr-%3Dz5ABpGG8BhTO841dddiugU241sKL0rw_%3DGEYrjnQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
