Why is notify: - nexus-service-stop here? I don't see the need to restart Nexus if only it's package was downloaded. True change happens when unpacking Nexus:
So which triggers nexus-service-stop by itself if it changes.
Furthermore I encountered case, when this (in my opinion useless notify: - nexus-service-stop) restarts Nexus needlessly:
I created a Nexus and left it running for a longer time
I didn't set nexus_download_dir so tarball got saved to /tmp
After a while tarball got wiped from /tmp.
I run playbook again to apply some minor changes in repositories and unexpectedly it restarts Nexus (since Download nexus_package task state is "changed")
If notify: - nexus-service-stop has no purpose in task - name: Download nexus_package task, then I'd consider removing it.
Hello! I have a question regarding following task:
Why is
notify: - nexus-service-stop
here? I don't see the need to restart Nexus if only it's package was downloaded. True change happens when unpacking Nexus:So which triggers
nexus-service-stop
by itself if it changes.Furthermore I encountered case, when this (in my opinion useless
notify: - nexus-service-stop
) restarts Nexus needlessly:nexus_download_dir
so tarball got saved to/tmp
/tmp
.Download nexus_package
task state is "changed")If
notify: - nexus-service-stop
has no purpose in task- name: Download nexus_package
task, then I'd consider removing it.If you agree, I can create a PR.