Bad local python interpreter when using venv in playbook
TASK [kubernetes-postconfigure : create the exact same directory than the one on the server] ***
fatal: [control01-by-os-infra-manager]: FAILED! => changed=false
module_stderr: |-
/bin/sh: /home/debian/rke/venv/bin/pyvenv: not found
module_stdout: ''
msg: |-
The module failed to execute correctly, you probably need to set the interpreter.
See stdout/stderr for the exact error
proposition is to add a global_variable local_ansible_python_interpreter
that will be forced for tasks with delegate_to