I currently have this in a playbook:
- block:
- name: checking values
fail: msg="failure here"
when: ( ( application is not defined) or ( application == "") or
( component is not defined) or ( component == "") or
( env is not defined) or ( env == "") or
( owner is not defined) or (owner == "") or (owner_check == "") )
and a colleague mentioned that it would be better from a performance perspective to break it up into smaller tasks. Is that true? Is there a rule of thumb, e.g. depending on how long the conditional statement is, on whether to break it up or not?