OK, this ended up being how I did it:

- copy
....
dest: "{{ item }}"
....
with_items:
   - '/etc/motd'
   - '/etc/issue'


On Thursday, September 14, 2017 at 2:03:41 PM UTC-7, Kai Stian Olstad wrote:
>
> On 14. sep. 2017 21:56, daddyocruzer wrote: 
> > I have this for copying the same (new) banner file to each locations - 
> is 
> > there a way for 'dest' to expand to include each location in a single 
> line 
> > so I can have just one 'copy' block? 
>
> No, but you can use with_items, you will only have one copy in your code 
> but it will expand to as many tasks as you have in with_items. 
>
>
> -- 
> Kai Stian Olstad 
>

-- 
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/bccaf1cd-7c98-407b-a68f-7db30734e151%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to