Merge "Use assert to test/validate condition"
This commit is contained in:
commit
609b51d8a6
@ -12,14 +12,14 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Validate serial console configuration
|
- name: Validate serial console configuration
|
||||||
block:
|
block:
|
||||||
- name: Check ipmitool-socat is in enabled in kolla_ironic_enabled_console_interfaces
|
- name: Check ipmitool-socat is in kolla_ironic_enabled_console_interfaces
|
||||||
fail:
|
assert:
|
||||||
msg: >
|
that:
|
||||||
|
- kolla_ironic_enabled_console_interfaces is defined
|
||||||
|
- "'ipmitool-socat' in kolla_ironic_enabled_console_interfaces"
|
||||||
|
fail_msg: >
|
||||||
kolla_ironic_enabled_console_interfaces must contain ipmitool-socat if you set
|
kolla_ironic_enabled_console_interfaces must contain ipmitool-socat if you set
|
||||||
ironic_serial_console_autoenable to true
|
ironic_serial_console_autoenable to true
|
||||||
when:
|
|
||||||
- kolla_ironic_enabled_console_interfaces is defined
|
|
||||||
- "'ipmitool-socat' not in kolla_ironic_enabled_console_interfaces"
|
|
||||||
when: ironic_serial_console_autoenable | bool
|
when: ironic_serial_console_autoenable | bool
|
||||||
|
|
||||||
- name: Ensure Kolla Ansible is configured
|
- name: Ensure Kolla Ansible is configured
|
||||||
|
Loading…
Reference in New Issue
Block a user