I have a jar file named something like myjar -1.1.0-assembly.jar. When our team does a release, a new jar named something like myjar -1.2.0-assembly.jar is created and needs to be deployed to the world. Additionally, any jars matching the myjar -[VERSION]-assembly.jar pattern need to be deleted as part of this process to prevent any class conflicts at runtime.
What’s the best way to do this with Ansible?