This sort of works:
*- hosts: master*
* tasks: *
* - name loop through slaves and copy template results to master*
* template: src=template.txt dest={item}.txt*
* with_items: {{groups.slaves}}*
What I really want is this but it fails since *item* "has no attribute
'inventor_hostname'":
*- hosts: master*
* tasks: *
* - name loop through slaves and copy template results to master*
* template: src=template.txt dest={item.inventory_hostname}.txt*
* with_items*: {{groups.slaves}}
Assuming that can be made to work, the template.txt also assumes it has
access to a host, complete with host variables etc.
--
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/48938ce6-29eb-4333-95f3-fce5c11cf26f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.