title: Ansible ad-hoc command works but same doesn't work in ansible playbook
body: <p>I'm able to run the raw module using Ansible ad-hoc commands however, when run the playbook with same commands it fails with error:</p>
  
  <pre><code>invalid output was: Traceback (most recent call last):
    File "/tmp/ansible-tmp-1418879078.47-138258829915016/setup", line 187, in &lt;module&gt;
      import locale
  ImportError: No module named locale 
  </code></pre>
  
  <p>Any idea what I might be missing or how should I write the playbook to reflect the same as I'm doing in ad-hoc command.</p>
  
  <p>My ad-hoc command is: </p>
  
  <pre><code>sudo ansible locale1 -i data --private-key=server.pem -vvvv -u ubuntu -m script -a multivr.sh 
  </code></pre>
  
  <p>Where <strong>miltivr.sh</strong> is a small script in bash that removes the <strong>multiverse.list</strong>.
  locale1 is a tag in my inventory file to tell ansible which hosts I need to run this command on.</p>
  
  <p>Any help would be appreciated.</p>