From 22de950cf57e8084d7e643bd841febbd25d9aa1a Mon Sep 17 00:00:00 2001 From: Vezpi Date: Mon, 22 Jun 2026 20:14:01 +0000 Subject: [PATCH] refactor: merge assert with the task before --- ansible/opnsense/update_opnsense_ha_cluster.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ansible/opnsense/update_opnsense_ha_cluster.yml b/ansible/opnsense/update_opnsense_ha_cluster.yml index 5256fc6..5464dc3 100644 --- a/ansible/opnsense/update_opnsense_ha_cluster.yml +++ b/ansible/opnsense/update_opnsense_ha_cluster.yml @@ -285,13 +285,9 @@ force_basic_auth: true validate_certs: false register: _update_running + failedd_when: _update_running.json.status != 'busy' - - name: Assert the update is running - ansible.builtin.assert: - that: _update_running.json.status == 'busy' - quiet: true - - - name: Wait for node to go offline + - name: Wait for node to reboot after the update ansible.builtin.wait_for: host: "{{ ansible_host }}" port: "{{ opnsense_https_port }}"