Is it possible to use subdirectories when copying files?
I have a play like
- name: Copy Migration Files
copy: src={{item}} dest=/opt/flyway/sql/
tags: migrate
with_items:
- V1_1__SetupSchemas.sql
Right now the V1_1__SetupSchemas.sql lives in /toplevel/roles/myrole/files/. I would like to place it in /toplevel/roles/myrole/files/migrations/.
I can’t seem to find any docs on how to achieve this, though I can vaguely remember seeing it at one point.