ansible-ThoTeam / nexus3-oss

Ansible role to install and provision sonatype nexus3-oss
GNU General Public License v3.0
286 stars 205 forks source link

Update nexus_install.yml to accept both 200 and 304 status codes #413

Open cusux opened 6 months ago

cusux commented 6 months ago

If file exists on destination node and is identical to remote source, the get_url module outputs 304 status code and therefore both 200 and 304 need to be in the conditional.

In the current state, if file exists on destination node it will try X times until statuscode 200 is returned, which will result in a failed state of the run whenever a 304 status code is returned.