-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Description
What happened?
fatal: [master01]: FAILED! => {"msg": "The conditional check 'ansible_facts.selinux.mode == 'enforcing'' failed. The error was: error while evaluating conditional (ansible_facts.selinux.mode == 'enforcing'): 'dict object' has no attribute 'mode'\n\nThe error appears to be in '/root/kubespray/roles/kubernetes/preinstall/tasks/0081-ntp-configurations.yml': line 84, 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: Put SELinux in permissive mode, logging actions that would be blocked.\n ^ here\n"}
The installation reported an error
What did you expect to happen?
No errors
How can we reproduce it (as minimally and precisely as possible)?
I replaced
kubespraybak/roles/kubernetes/preinstall/tasks/0081-ntp-configurations.yml
- ansible_facts.selinux.mode == 'enforcing'
with
- ansible_facts.selinux.status == 'enforcing'
Error elimination
OS
Other|Unsupported
Version of Ansible
almalinux 10
ansible [core 2.17.14]
Version of Python
3.12.9
Version of Kubespray (commit)
2.29.1
Network plugin used
cilium
Full inventory with variables
ansible-playbook -i inventory/mycluster/inventory.ini --become --become-user=root --tags cluster.yml
Command used to invoke ansible
ansible-playbook
Output of ansible run
ansible-playbook -i inventory/mycluster/inventory.ini --become --become-user=root --tags cluster.yml
Anything else we need to know
No response