From ce5540cd405d22a6358881773dea1922789924ad Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 4 Mar 2023 23:17:46 +0200 Subject: [PATCH] Update playbooks: Some OpenBSD 7.2 updates. --- Ansible/update.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Ansible/update.yaml b/Ansible/update.yaml index 136b095..b6eb489 100644 --- a/Ansible/update.yaml +++ b/Ansible/update.yaml @@ -96,7 +96,8 @@ - name: Apply system patches command: syspatch register: syspatch - changed_when: syspatch.stdout_lines|length > 0 + changed_when: syspatch.rc == 0 + failed_when: syspatch.rc not in [0,2] - name: Update packages community.general.openbsd_pkg: @@ -107,7 +108,8 @@ - name: Update firmware command: fw_update -a register: fw_update - changed_when: fw_update.stdout_lines|length > 0 + changed_when: |- + "fw_update: added none; updated none;" not in fw_update.stdout - name: Set reboot needed fact set_fact: -- GitLab