refactor: merge assert with the task before

This commit is contained in:
2026-06-22 20:14:01 +00:00
parent fd0a9a83e8
commit 22de950cf5

View File

@@ -285,13 +285,9 @@
force_basic_auth: true force_basic_auth: true
validate_certs: false validate_certs: false
register: _update_running register: _update_running
failedd_when: _update_running.json.status != 'busy'
- name: Assert the update is running - name: Wait for node to reboot after the update
ansible.builtin.assert:
that: _update_running.json.status == 'busy'
quiet: true
- name: Wait for node to go offline
ansible.builtin.wait_for: ansible.builtin.wait_for:
host: "{{ ansible_host }}" host: "{{ ansible_host }}"
port: "{{ opnsense_https_port }}" port: "{{ opnsense_https_port }}"