ERROR! Invalid shell type specified (bash), or the plugin for that shell type is missing.

1,848 views
Skip to first unread message

Nico K.

unread,
Jun 23, 2015, 3:06:15 AM6/23/15
to ansible...@googlegroups.com
Hi,

To ensure that all our playbooks continue running on the upcoming Ansible 2.0, I decided to give it a test run.
Did a clean checkout in a new tree and attempted to run my playbooks, sadly I immediately run into an error:

TASK [ec2-group : ec2-group : include] ******************************************
fatal: [xxxx]: FAILED! => {"msg": "ERROR! Invalid shell type specified (bash), or the plugin for that shell type is missing.", "failed": true}

Contents of this role:
---
- include: vpc.yml
  when: ec2_vpc_id is defined

- include: non-vpc.yml
  when: ec2_vpc_id is not defined

Both of those files invoke the 'ec2_group' module on their turn.
Just to make sure, after this I installed ansible (current release) using pip and ran the playbooks without any problems.

Thanks,
Nico

Nico K.

unread,
Jun 23, 2015, 5:06:37 PM6/23/15
to ansible...@googlegroups.com
My ansible.cfg has executable set to '/bin/bash'.

Brian Coca

unread,
Jun 26, 2015, 12:39:02 AM6/26/15
to ansible...@googlegroups.com
Try this as a workaround, set ansible_shell_type=sh for all the
hosts, if that works I'm pretty sure I can solve the issue.


--
Brian Coca

Nico K.

unread,
Jun 27, 2015, 2:12:29 AM6/27/15
to ansible...@googlegroups.com
I should have been more thorough in my previous reply, when I mentioned it I was trying to point out that was causing the problem.
Disabling the option so it defaults to sh or explicitly specifying sh makes the problem go away.

Brian Coca

unread,
Jun 30, 2015, 12:36:03 AM6/30/15
to ansible...@googlegroups.com
ok, so it seems we just need to make sure when we have bash as the
executable to set the shell type to sh

--
Brian Coca

Aneesh Joseph

unread,
Feb 4, 2016, 2:39:19 AM2/4/16
to Ansible Project
I'm also facing the same issue, if I set ansible_shell_type=sh when I use executable=/bin/bash, it works. 
Reply all
Reply to author
Forward
0 new messages