I have an ansible file that I use to move a JAR file from one host to another host.
This looks like this:
- hosts: all
tasks:
- name:
"move jar"
synchronize:
src: ../target/my-project-1.0.3-SNAPSHOT.jar
dest: ~/
The problem is that the snapshot version (currently 1.0.3) will keep incrementing. I was wondering if there is a way to use a wildcard? I tried putting my-project-*-SNAPSHOT.jar but it did not work? Is it possible?