From b2f9afb98832f6587c45ae33d5a60a20ec7dc69c Mon Sep 17 00:00:00 2001 From: HVSharma12 Date: Sun, 14 Jan 2024 19:09:28 +0530 Subject: [PATCH 1/2] ci: Add check for Cockpit package installation status in reboot condition --- tasks/setup-zypper.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tasks/setup-zypper.yml b/tasks/setup-zypper.yml index 7ac26ef..3ed76ca 100644 --- a/tasks/setup-zypper.yml +++ b/tasks/setup-zypper.yml @@ -12,7 +12,10 @@ if cockpit_packages in __cockpit_package_types else cockpit_packages }}" state: present + register: cockpit_installation_status -- name: Reboot system +- name: Reboot transactional update systems reboot: - when: ansible_distribution == 'ALP-Dolomite' + when: + - cockpit_installation_status is changed + - ansible_distribution == 'ALP-Dolomite' From 4f84918dc0b24ef81fe62f60ae25f9bac6fe82fd Mon Sep 17 00:00:00 2001 From: Harshvardhan Sharma Date: Mon, 15 Jan 2024 05:09:45 +0530 Subject: [PATCH 2/2] Update tasks/setup-zypper.yml Co-authored-by: Richard Megginson --- tasks/setup-zypper.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/setup-zypper.yml b/tasks/setup-zypper.yml index 3ed76ca..2e8fb5a 100644 --- a/tasks/setup-zypper.yml +++ b/tasks/setup-zypper.yml @@ -18,4 +18,4 @@ reboot: when: - cockpit_installation_status is changed - - ansible_distribution == 'ALP-Dolomite' + - ansible_distribution == "ALP-Dolomite"