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:
"invalid output was: Traceback (most recent call last):
File "/tmp/ansible-tmp-1418879078.47-138258829915016/setup", line 187, in <module>
import locale
ImportError: No module named locale "
Any idea what I might be missing....or how how should I write the playbook to reflect the same as I'm doing in ad-hoc command.
My ad-hoc command is: "sudo ansible locale1 -i data --private-key=server.pem -vvvv -u ubuntu -m script -a multivr.sh "
Where miltivr.sh is a small script in bash that removes the multiverse.list.
locale1 is a tag in my inventory file to tell ansible which hosts I need to run this command on.
Any help would be appreciated.