Skip to content

Instantly share code, notes, and snippets.

@neilhwatson
Created October 14, 2016 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilhwatson/4af41e84606dd0b9f2cd1078a8080adc to your computer and use it in GitHub Desktop.
Save neilhwatson/4af41e84606dd0b9f2cd1078a8080adc to your computer and use it in GitHub Desktop.
# How get just the file name from the glob and not the path?
- name: "Copy newly built jar file"
copy: src={{ item }}
dest={{ push_dir }}/
owner={{ cf_user }}
group={{ cf_group }}
mode=640
with_fileglob:
- "{{ WORKSPACE }}/target/*.jar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment