Hi all,
I'm sitting in front of a fairly complex ansible project that we're using to set up our local development environments (multiple VMs) and there's one role that uses the facts gathere by ansible to set up the etc/hosts file on every VM. Unfortunately, when you want to run the playbook for one host only (using the -limit parameter) the facts from the other hosts are (obviously) missing. Is there a way to force ansible to gather facts on all hosts, even if you limit the playbook to one specific host? We tried to add a play to the playbook to gather facts from all hosts, but of course that also gets limited to the one host given by the -limit parameter. If there'd be a way to force this play to run on all hosts before the other plays, that would be perfect. I've found the solution to use fact caching with redis, but since our playbook is used locally, I wanted to avoid the need for additional software. I know, it's not a big deal, but I was just looking for a "cleaner", ansible-only solution and was wondering, if that would exist. Cheers, Christian -- 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+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fd36c7fe-87f4-4028-8d2d-d70d27b5794f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.