Skip reading bash profile

15 views
Skip to first unread message

Anton Balashov

unread,
Mar 4, 2016, 10:08:56 AM3/4/16
to Ansible Project
Hello.
On the target machine in bash profile there are lines which checks if the bash session is interactive, then exit 0;
By that, interactive logins are prohibited (in /etc/profile). But, I can run command by "ssh host command" or run bash by "ssh host bash -i".
When I try to use ansible against the host, ansible faces this exit 0 and fails.
Is there a simple way for ansible to skip profile reading or use "/bin/bash -i"?
Thanks. 

Johannes Kastl

unread,
Mar 6, 2016, 1:07:12 PM3/6/16
to ansible...@googlegroups.com
Hi Anton,

Am 04.03.16 schrieb Anton Balashov:

> Is there a simple way for ansible to skip profile reading or use "/bin/bash
> -i"?

I am no expert on this, but what good should you prohibiting
interactive logins do? Especially if you can workaround them in such
an easy way?

Interested,
Johannes

signature.asc
Reply all
Reply to author
Forward
0 new messages