add: register when enable maintenance
This commit is contained in:
@@ -69,6 +69,7 @@
|
|||||||
- total_vips > 0
|
- total_vips > 0
|
||||||
- mismatched_vips == 0
|
- mismatched_vips == 0
|
||||||
- not in_maintenance
|
- not in_maintenance
|
||||||
|
quiet: true
|
||||||
|
|
||||||
- name: Display firmware status
|
- name: Display firmware status
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
@@ -83,6 +84,8 @@
|
|||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg: "End of workflow, sending notification"
|
msg: "End of workflow, sending notification"
|
||||||
|
|
||||||
|
- fail:
|
||||||
|
|
||||||
|
|
||||||
- name: "Phase 2 | Update backup node (TrueNAS, no snapshot)"
|
- name: "Phase 2 | Update backup node (TrueNAS, no snapshot)"
|
||||||
hosts: opnsense_backup
|
hosts: opnsense_backup
|
||||||
@@ -99,6 +102,10 @@
|
|||||||
password: "{{ opnsense_api_secret }}"
|
password: "{{ opnsense_api_secret }}"
|
||||||
force_basic_auth: true
|
force_basic_auth: true
|
||||||
validate_certs: false
|
validate_certs: false
|
||||||
|
register: _enable_maintenance
|
||||||
|
|
||||||
|
- debug:
|
||||||
|
var: _enable_maintenance
|
||||||
|
|
||||||
# - name: Trigger firmware update
|
# - name: Trigger firmware update
|
||||||
# ansible.builtin.uri:
|
# ansible.builtin.uri:
|
||||||
|
|||||||
Reference in New Issue
Block a user