An alternate implementation I was considering was to allow to delegate
facts, currently gathering facts with delegate_to: applies the facts
to the 'current host' or 'delegated for host'. This would solve not
only the issue when you want all host facts but also when you want
just a small group or single host:

setup: update={{item}}
with items: "{{groups['dbservers']}}
delegate to: item

This would gather facts for the hosts in dbservers group and apply
them to those hosts (not current) and make them available to other
hosts through the hostvars[] dictionary.

The force option gives you all or nothing, which can apply to some
setups but will be very hard to use on large inventories or those with
disconnected/slow 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 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/CAJ5XC8%3DAe%2BDYQCPv75oCqUm_aXABPGh10sCR364FaENzejLNFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to