Unexpected behaviour when using local user python install

Sure, read the docs regarding the "ansible_python_interpreter"
variable and it will do what you want.

Hi Michael,
thanks for your reply.

As I noted in my first post, I’m already using ansible_python_interpreter, but maybe I’m doing something wrong?

mcaprari@MCAPRARIPC ~

$ cat ansible-stage-hosts
fcpa01 ansible_python_interpreter=/home/fds/rms/usr/bin/python

-teo

The underlying issue is not with ansible_python_interpreter, but that
easy_install module doesn't have a way to let you specify which
easy_install to use.

And the same applies to the command module, which does not allow overriding of PATH.

Because ansible_python_interpreter does not set path, nor should it.

You should explore the virtualenv options if you wish to use the
easy_install module.