refactor: merge assert with the task before
This commit is contained in:
@@ -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 }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user