- (auto_out.ansible_facts.discovered_interpreter_python == '/usr/bin/python' and distro_version is version('8','<')) or distro_version is version('8','>=')
# rhel 8+
- (auto_out.ansible_facts.discovered_interpreter_python == '/usr/libexec/platform-python' and distro_version is version('8','>=')) or distro_version is version('8','<')
fail_msg:auto_out={{auto_out}}
fail_msg:auto_out={{auto_out}}
when:distro in ('redhat', 'centos')
when:
- distro in ('redhat', 'centos')
- distro_version is version('8.0', '<', strict=true)
- (auto_out.ansible_facts.discovered_interpreter_python == '/usr/bin/python' and distro_version is version('16.04','<')) or distro_version is version('16.04','>=')
# ubuntu >= 16
- (auto_out.ansible_facts.discovered_interpreter_python == '/usr/bin/python3' and distro_version is version('16.04','>=')) or distro_version is version('16.04','<')
fail_msg:auto_out={{auto_out}}
fail_msg:auto_out={{auto_out}}
when:distro == 'ubuntu'
when:
- distro in ('redhat', 'centos')
- distro_version is version('8.0', '>=', strict=true)