# ansible wont use csh even if it set in inverntory

**URL:** <https://forum.ansible.com/t/ansible-wont-use-csh-even-if-it-set-in-inverntory/18798>\
**Category:** Ansible Project\
**Created:** [July 17, 2015, 12:06pm UTC](https://forum.ansible.com/t/ansible-wont-use-csh-even-if-it-set-in-inverntory/18798 "2015-07-17T12:06:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Veselovski](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@Michael\_Veselovski](https://forum.ansible.com/u/Michael_Veselovski)\
**Post date:** [July 17, 2015, 12:06pm UTC](https://forum.ansible.com/t/ansible-wont-use-csh-even-if-it-set-in-inverntory/18798/1 "2015-07-17T12:06:52Z")

</div>

Hello

I’m having problem with using ansible with my freebsd 10.1 hosts

there is example of my play

freebsd.local ansible\_ssh\_host=192.168.2.110 ansible\_ssh\_pass=‘XXXXXXXXX’ ansible\_shell\_type=csh ansible\_python\_interpreter=/usr/local/bin/python

and there is example of output

ansible new-hosts -l freebsd.local -m shell -a ‘uptime’ -vvv  
\<192.168.2.110\> ESTABLISH CONNECTION FOR USER: root  
\<192.168.2.110\> REMOTE\_MODULE command uptime #USE\_SHELL  
\<192.168.2.110\> EXEC sshpass -d6 ssh -C -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=“/home/michael/.ansible/cp/ansible-ssh-%h-%p-%r” -o StrictHostKeyChecking=no -o GSSAPIAuthentication=no -o PubkeyAuthentication=no -o User=root -o ConnectTimeout=10 192.168.2.110 /bin/sh -c ‘env LANG=en\_US.UTF-8 LC\_CTYPE=en\_US.UTF-8 /usr/local/bin/python’

in if I run sshpass command I’ve got

debug1: Authentications that can continue: publickey,keyboard-interactive  
debug1: Next authentication method: publickey  
debug1: Offering RSA public key: /home/michael/.ssh/id\_rsa  
debug1: Authentications that can continue: publickey,keyboard-interactive  
debug1: Trying private key: /home/michael/.ssh/id\_dsa  
debug1: Trying private key: /home/michael/.ssh/id\_ecdsa  
debug1: Trying private key: /home/michael/.ssh/id\_ed25519  
debug1: Next authentication method: keyboard-interactive

on host side I see only this when I press ctrl+c

Jul 17 14:03:20 freebsd sshd[769]: Connection closed by 192.168.2.152 [preauth]

ansible --version  
ansible 1.9.2  
configured module search path = None

python on ansible host

python -V  
Python 2.7.9

on freebsd

python -V  
Python 2.7.10

any ideas where I should dig further ?

thanks

Michael

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [July 17, 2015, 1:01pm UTC](https://forum.ansible.com/t/ansible-wont-use-csh-even-if-it-set-in-inverntory/18798/2 "2015-07-17T13:01:10Z")

</div>

if you are using ssh passwords, switch to paramiko as your transport,  
the normally installed sshpass cannot handle FreeBSD password prompts,  
paramiko doesn't use sshpass and can bypass this.

ansible\_shell\_type does not force csh execution, it is there for when  
your default shell is csh and ansible needs to quote thing differently  
to pipe over ssh.
