Merge "zun: Use assert on checks for readability"
This commit is contained in:
commit
ffa9c307b4
@ -50,10 +50,9 @@
|
|||||||
- inventory_hostname in groups['zun-cni-daemon']
|
- inventory_hostname in groups['zun-cni-daemon']
|
||||||
|
|
||||||
- name: Ensure kuryr enabled for zun
|
- name: Ensure kuryr enabled for zun
|
||||||
fail:
|
assert:
|
||||||
msg: "kuryr is required but not enabled"
|
that: enable_kuryr | bool
|
||||||
|
fail_msg: "kuryr is required but not enabled"
|
||||||
run_once: True
|
run_once: True
|
||||||
changed_when: false
|
|
||||||
when:
|
when:
|
||||||
- enable_zun | bool
|
- enable_zun | bool
|
||||||
- not enable_kuryr | bool
|
|
||||||
|
Loading…
Reference in New Issue
Block a user