From 0eeb3f042463a0df8ec112c0b5e50d34480b1991 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 15 Oct 2024 08:54:33 +0200 Subject: [PATCH] update foreman-maintain before stopping services This ensures any possible fixes for process handling are available. --- roles/foreman_installer/tasks/upgrade.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/foreman_installer/tasks/upgrade.yml b/roles/foreman_installer/tasks/upgrade.yml index 83f6f7dd3..25ec6351e 100644 --- a/roles/foreman_installer/tasks/upgrade.yml +++ b/roles/foreman_installer/tasks/upgrade.yml @@ -1,4 +1,12 @@ --- +- name: 'Update foreman-maintain' + package: + name: rubygem-foreman_maintain + state: latest + when: + - foreman_installer_scenario != 'foreman' + - ansible_os_family == 'RedHat' + - name: 'Stop services' command: foreman-maintain service stop when: foreman_installer_scenario != 'foreman'