Ansible/Artifactory - Upgrade play to stop service

When running the upgrade play the stop artifactory is never notified.
So running flush_handlers never actually gets hit.

Add notify to unarchive task, with the idea being if you're
unarchiving a new version this means that host will be taking
an update.

zachary.wayer@garmin.com
This commit is contained in:
zwarebear
2023-01-17 15:13:52 -06:00
parent 71e2f3ac9a
commit ef32b4932e

View File

@@ -27,6 +27,7 @@
owner: "{{ artifactory_user }}" owner: "{{ artifactory_user }}"
group: "{{ artifactory_group }}" group: "{{ artifactory_group }}"
creates: "{{ artifactory_untar_home }}" creates: "{{ artifactory_untar_home }}"
notify: stop artifactory
when: (download_artifactory is succeeded) and (not ansible_check_mode) when: (download_artifactory is succeeded) and (not ansible_check_mode)
- name: Stop artifactory - name: Stop artifactory