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?
tasks: - copy: src : ~/new-banner-2017.txt <----- same file dest: /etc/motd owner: root group: root mode: 0644 - copy: src: ~/new-banner-2017.txt <----- same file dest: /etc/issue owner: root group: root mode: 0644
Is there a way to have ‘dest’ cover both destinations, like an array or list of some sort? ( dest: “/etc/issue , /etc/motd” ) ?