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