When I SSH into a host it requires tty to perform sudo commands, is it possible to tell ansible to use “-t” or “-t -t” when SSHing to a host? I’m also on CentOS6 so it’s using paramiko.
Thanks.
When I SSH into a host it requires tty to perform sudo commands, is it possible to tell ansible to use “-t” or “-t -t” when SSHing to a host? I’m also on CentOS6 so it’s using paramiko.
Thanks.
Hi, I'm afraid I don't quite understand the problem you're scenario.
What are you trying to do and how is it failing?
Thanks,
-Toshio
I found the answer (thanks to Faux in irc), in ansible.cfg you can set specify “ssh_args” if you’re using OpenSSH (which I’m not now but will once I upgrade to a newer OS or version of OpenSSH).
In my case, I’d add the following to ansible.cfg
ssh_args = -t -t