So, this is ansible 2.10, and i'm trying to copy multiple files using with_items
and it seems that it does not work. My tryout are more or less on the form of (this is a task):
---
- name: Sync md tools
ansible.builtin.copy:
dest: /root/bin/
src: "{{ playbook_dir }}/../additions/mdraid/{{ item }}"
with_items:
- mdadm_readd_dev
- md_check
owner: root
group: root
mode: '0700'
force: yes
I'm aware of ansible.posix.synchronize
and of src_dir/ dst_dir/
format, but i would like to be able so specify a list. Is there a way to copy a specific list of multiple files with ansible.builtin.copy?