Hi guys,
First of all, the playbook contains tasks with name that contains Japanese UTF-8 character.Playbook ran without problem when I ran it through terminal, but I got these errors when git hook execute the playbook.
Any idea how to solve this? I am using ansible 1.3
remote: Traceback (most recent call last):
remote: File “/usr/bin/ansible-playbook”, line 268, in
remote: sys.exit(main(sys.argv[1:]))
remote: File “/usr/bin/ansible-playbook”, line 208, in main
remote: pb.run()
remote: File “/usr/lib/python2.6/site-packages/ansible/playbook/init.py”, line 262, in run
remote: if not self._run_play(play):
remote: File “/usr/lib/python2.6/site-packages/ansible/playbook/init.py”, line 566, in _run_play
remote: if not self._run_task(play, task, False):
remote: File “/usr/lib/python2.6/site-packages/ansible/playbook/init.py”, line 349, in _run_task
remote: self.callbacks.on_task_start(template(play.basedir, task.name, task.module_vars, lookup_fatal=False, filter_fatal=False), is_handler)
remote: File “/usr/lib/python2.6/site-packages/ansible/callbacks.py”, line 603, in on_task_start
remote: display(banner(msg))
remote: File “/usr/lib/python2.6/site-packages/ansible/callbacks.py”, line 131, in display
remote: print msg2
remote: UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 8-16: ordinal not in range(128)
Thanks!
Rafiq