Add interpreter check to meta playbook

This commit is contained in:
Ethan Paul 2020-03-17 22:49:06 -04:00
parent c59b9f54bb
commit 182cdb20ae

View File

@ -13,3 +13,8 @@
- omni_os.version_major == ansible_distribution_major_version - omni_os.version_major == ansible_distribution_major_version
fail_msg: "Host does not meet required OS specified" fail_msg: "Host does not meet required OS specified"
success_msg: "Required OS validation succeeded" success_msg: "Required OS validation succeeded"
- name: Enforce python interpreter
when: ansible_distribution != "CentOS" and ansible_distribution_major_version != "7"
set_fact:
ansible_python_interpreter: /usr/bin/python3