on_rhel7:'{{ ansible_distribution == ''RedHat'' and ansible_lsb.major_release|int == 7 }}'
- debug:
@ -23,17 +33,26 @@
msg:"This playbook can install by itself the missing packages on RHEL 7.x but we are not on such system (detected OS : {{ansible_distribution}} {{ansible_distribution_version}}). See https://github.com/nmasse-itix/OpenShift-Lab/issues/5 for more information."
when:'jmespath_missing and not on_rhel7'
- fail:
msg:"This playbook can install by itself the missing packages on RHEL 7.x but we are not on such system (detected OS : {{ansible_distribution}} {{ansible_distribution_version}}). See https://github.com/nmasse-itix/OpenShift-Lab/issues/8 for more information."