i ve an ansible role which looks like this :
my-role
├─── files
│ my-file-one
│ my-file-two
│ my-file-...
│ my-file-n
└─── tasks
main.yml
in my main.yml , i ve this recursive copy task , and i want to copy all files without the need of listing them manually :
- name: copy all files
copy:
src: "{{ item }}"
dest: /dest/
with_items:
- ????
Suggestions ??
with_fileglob
is a local lookup whilefind
is a remote lookup so this might not do what you want. – Oreilly