"shade is required for this module" even though shade is installed
<p>Im trying to deploy an ansible playbook to spin up some new openstack instances and keep getting the errorr</p>

<pre><code>"shade is required for this module"
</code></pre>

<p>Shade is definitely installed as are all its dependancies. </p>

<p>I've tried adding </p>

<pre><code>localhost ansible_python_interpreter="/usr/bin/env python"
</code></pre>

<p>to the ansible hosts file as suggested here, but this did not work. </p>

<p><a href="https://groups.google.com/forum/#!topic/ansible-project/rvqccvDLLcQ" rel="nofollow">https://groups.google.com/forum/#!topic/ansible-project/rvqccvDLLcQ</a></p>

<p>Any advice on solving this would be most appreciated. </p>

<p>On my hosts file I have the following: </p>

<pre><code>[local]
127.0.0.1 ansible_connection=local ansible_python_interpreter="/usr/bin/python"
</code></pre>

<p>So far I haven't been using venv and my playbooks work fine.
By adding the ansible_connection= local, it should tell your playbook to be executed on the Ansible machine (I guess that's what you are trying to do).</p>

<p>Then when I launch a playbook, I start with the following: </p>

<pre><code>- hosts: local
  connection: local
</code></pre>

<p>Not sure if that's the problem. If this does not work, you should give us more information (extract of your playbook at least). </p>

<p>Good luck!</p>

python ansible openstack