if you set these as environment variables, Ansible is not going to do
anything with them, they need to be variables.

ansible_shell_executable: "/usr/bin/ksh"
ansible_shell_interpreter: "/usr/bin/ksh"
ansible_python_interpreter: "/opt/bin/python"

 Also the `environment:` keyword won't affect Ansible itself, any
environment setting for Ansible must be set BEFORE calling the ansible
executable.


In any case, the output seems to show you using `ksh` and the specific
python, so they must be set correctly, just posting the above to
clarify misconceptions.

I'm not sure what is causing the bash error, since the last command
(part of cleanup) clearly uses ksh also:

'/usr/bin/ksh -c '"'"'rm -f -r
/root/.ansible/tmp/ansible-tmp-1587558405.77-115997468659119/ >
/dev/null 2>&1 && sleep 0'"'"''

unless the ssh login itself is forcing bash usage. I suggest tracing
the process on the remote to try to find out what exactly is executed
to trigger that error, since the last ansible command clearly
specifies ksh.

-- 
----------
Brian Coca

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7f4hZWtOaK6gBZh4zgV_3Z6TSxYiLS2aGPZsvzSPZDjuQ%40mail.gmail.com.

Reply via email to