From ef32b4932ebbb31d2ef4a28956527184bfeb4848 Mon Sep 17 00:00:00 2001 From: zwarebear <12432678+ZwareBear@users.noreply.github.com> Date: Tue, 17 Jan 2023 15:13:52 -0600 Subject: [PATCH] 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 --- .../jfrog/platform/roles/artifactory/tasks/upgrade.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/Ansible/ansible_collections/jfrog/platform/roles/artifactory/tasks/upgrade.yml b/Ansible/ansible_collections/jfrog/platform/roles/artifactory/tasks/upgrade.yml index fe38c82..c83120d 100644 --- a/Ansible/ansible_collections/jfrog/platform/roles/artifactory/tasks/upgrade.yml +++ b/Ansible/ansible_collections/jfrog/platform/roles/artifactory/tasks/upgrade.yml @@ -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