[Ansible/Artifactory] -Upgrade play to stop artifactory service (#256)

* 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

* Ansible/Artifactory - Fix notify Indention

Moving the notify clause to be even with the when statment.
This commit is contained in:
ZwareBear
2023-01-30 00:11:53 -06:00
committed by GitHub
parent 71e2f3ac9a
commit 6c7df3cb26

View File

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