Hi @Lyle_McKarns,
Thanks for your reply.
I found this topic :
When i set the var [ansible_python_interpreter] in my playbook :
vars:
ansible_python_interpreter: "/usr/bin/python3"
The playbook works.
I found the difference between why it works on a DBServer and not working on other DBserver.
It’s what you mentionned with [ /usr/bin/python3.12
]
On working DBServer, the python3.12 is not installed :
[root@OKDBSERVER check_mk]# ll /usr/bin/python3*
lrwxrwxrwx 1 root root 25 22 juin 2022 /usr/bin/python3 -> /etc/alternatives/python3
lrwxrwxrwx 1 root root 31 12 déc. 14:55 /usr/bin/python3.6 -> /usr/libexec/platform-python3.6
lrwxrwxrwx 1 root root 17 12 déc. 14:55 /usr/bin/python3.6-config -> python3.6m-config
lrwxrwxrwx 1 root root 32 12 déc. 14:55 /usr/bin/python3.6m -> /usr/libexec/platform-python3.6m
lrwxrwxrwx 1 root root 39 12 déc. 14:55 /usr/bin/python3.6m-config -> /usr/libexec/platform-python3.6m-config
lrwxrwxrwx 1 root root 46 12 déc. 14:55 /usr/bin/python3.6m-x86_64-config -> /usr/libexec/platform-python3.6m-x86_64-config
lrwxrwxrwx 1 root root 32 21 nov. 2023 /usr/bin/python3-config -> /etc/alternatives/python3-config
On not working DBServer python3.12 is installed :
[root@KODBSERVER etc]# ll /usr/bin/python3*
lrwxrwxrwx 1 root root 25 20 juin 2024 /usr/bin/python3 -> /etc/alternatives/python3
-rwxr-xr-x 1 root root 7752 12 déc. 14:05 /usr/bin/python3.12
lrwxrwxrwx 1 root root 31 12 déc. 14:55 /usr/bin/python3.6 -> /usr/libexec/platform-python3.6
lrwxrwxrwx 1 root root 17 12 déc. 14:55 /usr/bin/python3.6-config -> python3.6m-config
lrwxrwxrwx 1 root root 32 12 déc. 14:55 /usr/bin/python3.6m -> /usr/libexec/platform-python3.6m
lrwxrwxrwx 1 root root 39 12 déc. 14:55 /usr/bin/python3.6m-config -> /usr/libexec/platform-python3.6m-config
lrwxrwxrwx 1 root root 46 12 déc. 14:55 /usr/bin/python3.6m-x86_64-config -> /usr/libexec/platform-python3.6m-x86_64-config
lrwxrwxrwx 1 root root 32 20 juin 2024 /usr/bin/python3-config -> /etc/alternatives/python3-config
The alternative for python3 pointed target [/usr/bin/python3.6] :
[root@KODBSERVER etc]# ll /etc/alternatives/python3
lrwxrwxrwx 1 root root 18 20 juin 2024 /etc/alternatives/python3 -> /usr/bin/python3.6
I don’t know why python3.12 is installed on some DBServer…
Matt