diff --git a/lib/ansible/modules/extras/packaging/maven_artifact.py b/lib/ansible/modules/extras/packaging/maven_artifact.py index bf4ca59f92c..75837050892 100755 --- a/lib/ansible/modules/extras/packaging/maven_artifact.py +++ b/lib/ansible/modules/extras/packaging/maven_artifact.py @@ -349,8 +349,7 @@ def main(): prev_state = "absent" if os.path.isdir(dest): - dest = dest + "/" + artifact_id + "-" + version + ".jar" - + dest = dest + "/" + artifact_id + "-" + version + "." + extension if os.path.lexists(dest): prev_state = "present" else: