Is it possible to provide options to ssh to enable tty?

600 views
Skip to first unread message

Craig Wickesser

unread,
Nov 6, 2014, 1:40:09 PM11/6/14
to ansible...@googlegroups.com
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.

Toshio Kuratomi

unread,
Nov 7, 2014, 11:51:13 AM11/7/14
to ansible...@googlegroups.com
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

craig w

unread,
Nov 7, 2014, 12:13:24 PM11/7/14
to ansible...@googlegroups.com
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


--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/eps9497TS-4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAG9juEr-723w%2B9Jiah06cmGMaGp-C4hYxptzak7-j86sevpYnA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages