Via Ansible to get the most recent war file from A nexus repo -
i have, in nexus, bunch of versions of .war files in snapshot repo. part of automated pipeline grab newest version of these .war files via ansible. when there no .war file on machine grab newest version. (code below).
- name: deploy war file maven_artifact: group_id=com.company artifact_id=sales-ui extension=war repository_url=http://ddnexusrepo:8081/nexus/content/repositories/{{repo}} username={{ nexus_user }} password={{ nexus_password }} dest=/usr/share/tomcat/webapps/sales-ui.war
when on system not updated when newer version in nexus. how can grab latest?
the way can think download (via same maven_artifact module) .war.md5 , compare .war's md5 on server see if there change. want state=latest
functionality present or absent. ideas appreciated.
thanks
you can use version=latest tag available in ansible 2.2.1.0
Comments
Post a Comment