Hi Paul,
The trick is to either (A) have a playbook that talks to both groups like
so:
- hosts: onegroup
tasks: []
- hosts: othergroup
tasks:
- ...
Or (B), if using 1.8, enable "fact caching" and gather facts on onegroup
and then have your other play use that cache.
http://docs.ansible.com/playbooks_variables.html#fact-caching
Let me know if this helps or you have further questions!
Thanks!
On Fri, Sep 5, 2014 at 5:15 PM, Paul Smith <[email protected]> wrote:
> I'd like to gather facts from one group of servers for running a playbook
> on another group. Crucially, I don't want to run tasks on the first group,
> just the fact-gathering.
>
> For example, I want to run a playbook for a group of app servers, which
> needs the facts of the database servers group for database IP addresses.
>
> -Paul
> @paulsmith
> pauladamsmith.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].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/e1e827f4-2ef5-46e6-8c1e-8bce138eaf71%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/e1e827f4-2ef5-46e6-8c1e-8bce138eaf71%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%2BnsWgxx9tseWx7czZHZuU2W7WFsavEE3_FJB%3DhwZm60mUAsGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.