# Skip reading bash profile

**URL:** <https://forum.ansible.com/t/skip-reading-bash-profile/20768>\
**Category:** Ansible Project\
**Created:** [March 4, 2016, 10:43am UTC](https://forum.ansible.com/t/skip-reading-bash-profile/20768 "2016-03-04T10:43:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anton\_Balashov](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@Anton\_Balashov](https://forum.ansible.com/u/Anton_Balashov)\
**Post date:** [March 4, 2016, 10:43am UTC](https://forum.ansible.com/t/skip-reading-bash-profile/20768/1 "2016-03-04T10:43:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Johannes\_Kastl](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Post date:** [March 6, 2016, 6:07pm UTC](https://forum.ansible.com/t/skip-reading-bash-profile/20768/2 "2016-03-06T18:07:01Z")

</div>

Hi Anton,
