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
Since Ansible 2.5 the with_* constructs are deprecated, and loop syntax should be used. A simple practical example:
with_*
loop
- name: Copy CA files copy: src: '{{item}}' dest: '/etc/pki/ca-trust/source/anchors' owner: root group: root mode: 0644 loop: - symantec-private.crt - verisignclass3g2.crt