Forum Discussion
do you have that “/bin/sh”\n’ in the ansible file?
if no, probably you ansible input file contains DOS format line ending (\r\n) which different from unix format (\n).
use "dos2unix" command to quickly remove the "\r".
you can also try to change builtin shell to /bin/bash because anyway /bin/sh is actually link to /bin/bash in F5.
[root@ltm1:Active:Standalone] config # ls -la /bin/sh
lrwxrwxrwx. 1 root root 4 Dec 1 11:57 /bin/sh -> bash
[root@ltm1:Active:Standalone] config # ls -la /bin/bash
-rwxr-xr-x. 1 root root 964584 Dec 1 10:37 /bin/bash
[root@ltm1:Active:Standalone] config #
- R13Feb 28, 2024
Nimbostratus
Thank for your reply. I tried adding executable = /bin/bash to ansible.cfg but it produced the same error but with bash:
Syntax Error: unexpected argument "/bin/bash"
- zamroni777Mar 03, 2024
Nacreous
ensure that the cfg file doesnt contain dos format line ending.
there is also error message "Failed to create temporary directory..." which usually means no write permission.
/tmp is usually owned by root
i usually use /var/tmp as it usually user writable - pranay48Apr 25, 2024
Nimbostratus
Hello,
I am facing the same issue, did you find any solution? If yes, can you please list the procedure