Add interpreter check to meta playbook
This commit is contained in:
parent
c59b9f54bb
commit
182cdb20ae
@ -13,3 +13,8 @@
|
||||
- omni_os.version_major == ansible_distribution_major_version
|
||||
fail_msg: "Host does not meet required OS specified"
|
||||
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
|
||||
|
Reference in New Issue
Block a user