How can I copy more than a single file into remote nodes by Ansible in a task?
I\'ve tried to duplicate the copy module line in my task to define files but it only copie
You can use with_together for this purpose:
- name: Copy multiple files to multiple directories copy: src={{ item.0 }} dest={{ item.1 }} with_together: - [ 'file1', 'file2', 'file3' ] - [ '/dir1/', '/dir2/', '/dir3/' ]