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

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:

My ansible.cfg has executable set to ‘/bin/bash’.

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.

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.

ok, so it seems we just need to make sure when we have bash as the
executable to set the shell type to sh

I’m also facing the same issue, if I set ansible_shell_type=sh when I use executable=/bin/bash, it works.