-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal error caused by shell type #13459
Comments
A temporary workaround for vagrant with freebsd 10.2 guest to work with ansible 2.0.0: manually changing the default shell of freebsd from csh to sh through vagrant builtin privision. config.vm.define :server do |server| Something has changed at "mkdtemp" method for ansible versions > 1.9.4. The echo part echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1449517181.33-230267840450118 )" ) from this method seems to have caused the problem for csh. Have not got time to dig into it though. |
have you set ansible_shell_type=csh for that host? |
No, I did not set ansible_shell_type=csh. I found that the worse part is that even when I make it NOT to be csh (e.g., sh), it seemed to have no effect. That made me to resort to vagrant provision instead. |
if your target machine is using a csh type shell you need to set that var, otherwise ansible will use the default (sh) which will produce the error you show above. if you don't want to set the var then changing the shell to sh is the other way to make it work. Closing this as it seems to just be a misunderstanding on the shell settings. |
Does version 1.9.4 work with csh out of box? |
In my test, 1.9.4 works with the target machine and 2.0 does not. I see some changes in "mkdtemp" method for ansible versions > 1.9.4 causes the problem. |
tested latest stable-2.0 and it works, there were versions of 2.0 in which this was broken, can you use latest? |
Looks like the method below (from version > 1.9.4) caused the problem. It issued a command like
|
pushed fix, this now works in stable-2.0 and devel also |
Thanks! |
on mac 10.9.5, ansible versions > 1.9.4 has an error caused by default shell on remote freebsd 10.2 guest.
default ssh to freebsd seems to use csh and thus give the error as below. 1.9.4 works fine since it does not generate the echo portion like
configured ssh shell on vagrant and inside ansible privisioner through ansible_shell_type but still got the error.
The text was updated successfully, but these errors were encountered: