What if instead of "gather_facts: force" we develop a mechanism that is 
simple in nature like:

gather_facts: hosts:all
gather_facts: hosts:compute,database

Where we trim the inventory based upon a set of groups?  (I just made that 
syntax up now, so dont hate me for it...open to ideas)  But would that help 
satisfy simplicity and your concerns about slow facts  and large 
inventories?


On Monday, June 8, 2015 at 4:36:37 PM UTC-4, Brian Coca wrote:
>
> 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/5805f962-2da9-485a-a376-2c6345103368%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to