W dniu 24.03.2014 19:54, Brian Coca pisze:
I was thinking something like:
```
setup: target={{item}}
with_items: groups['webservers']
```
this gives people more fine grained control, target will populate
hostvars[target], vs current host.
or would it be better to use delegate_to?
I'd say delegate_to (with a group, which isn't allowed ATM, I think?)
would be cleaner as it would transparently support other modules (like
custom facts) without modifying them. Also, to support this AFAIK you
need local action plugins, not just a module to run on the remote host.
So either this:
- setup:
delegate_to: webservers
Or this, which probably isn't valid Ansible either:
- setup:
delegate_to: "{{ item }}"
with_inventory_hostnames: webservers
Any of these would be fine with me.
Best regards,
Grzegorz Nosek
--
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/533080D2.1010306%40gmail.com.
For more options, visit https://groups.google.com/d/optout.