My ansible runs really slowly, I’ve looked at various things, and one thing I haven’t eliminated yet is that ansible runs in my NFS directory as it ssh’es around. I’ve run ansible before and its performance is fine usually – but the biggest difference in this setup is slow NFS and extra latency to the remote systems.
I’m in the process of trying the following and I think it is not working. I think sudo grabs the /tmp and then it runs /bin/sh as me.
[defaults]
executable=cd /tmp \&\& /bin/sh
Is there a better way?
(I’ve attached strace to the remote sshd while running – the biggest hit visually watching the system calls scroll by is python loading for every ansible statement. So I want to move $CWD to /tmp to minimize python reading the $CWD as it searches its paths – which is fairly slow NFS.)