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 loop through variable with list of directories:
- name: Copy files from several directories copy: src: "{{ item }}" dest: "/etc/fooapp/" owner: root mode: "0600" loop: "{{ files }}" vars: files: - "dir1/" - "dir2/"