Dear Team,

I am new to Ansible and i am getting the following erro while running " 
rhel-system-roles.selinux". Could you please help to resolve this error.

Environment: 
RHEL-  9 
Ansible core - 2.12.2
 python version = 3.9.10 

TASK [rhel-system-roles.selinux : Install SELinux python2 tools] 
*********************************************************
fatal: [ss1]: FAILED! => {"msg": "The conditional check 
'ansible_python_version is version('3', '<')' failed. The error was: error 
while evaluating conditional (ansible_python_version is version('3', '<')): 
'ansible_python_version' is undefined\n\nThe error appears to be in 
'/usr/share/ansible/roles/rhel-system-roles.selinux/tasks/main.yml': line 
2, column 3, but may\nbe elsewhere in the file depending on the exact 
syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: 
Install SELinux python2 tools\n  ^ here\n"}

Thanks & Regards,
Kannan Ravi

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d5dd49f4-1cda-4272-afcd-85404c5bdf1bn%40googlegroups.com.

Reply via email to