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.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9a46068b-97ee-4501-b23d-bd803cc1e6bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to