From 6c7df3cb263eb2eefb5e02eba1e03696db2ecaa4 Mon Sep 17 00:00:00 2001 From: ZwareBear <12432678+ZwareBear@users.noreply.github.com> Date: Mon, 30 Jan 2023 00:11:53 -0600 Subject: [PATCH] [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. --- .../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..5976c91 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