'AnsibleError: unable to process as utf-8

503 views
Skip to first unread message

Gidhin Joy

unread,
Apr 5, 2016, 1:03:14 PM4/5/16
to Ansible Project
Greetings.

I am trying to setup a playbook for automating an installation.


While transferring a file (binary response file) through template module, getting following error.


fatal: [xxxx.xxxx.local] => {'msg': 'AnsibleError: unable to process as utf-8: /etc/ansible/ORA_Patch/templates/ocm_12cLinux_PSU_Jan2016.rsp', 'failed': True}


Any advice on this please.

Thanks.
GJ

Toshio Kuratomi

unread,
Apr 5, 2016, 11:03:34 PM4/5/16
to ansible...@googlegroups.com
Ansible does not currently handle non-ut8 data in playbooks or most of
its text-processing modules. template would fall under the latter
category. Due to the way jinja2 works it may be that template (which
is a jinja2 template) may never handle that. If you tell us what
you're attempting to do we might be able to help you find an alternate
method of doing it. You may have to resort to using command: and
basic unix tools in the workaround, though.

-Toshio
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0ea5dfcc-0752-4e7a-8231-9d074466a4f4%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Gidhin Joy

unread,
Apr 6, 2016, 12:34:51 AM4/6/16
to Ansible Project
Thanks Toshio. In that case  I can workaround with "copy" module.
Reply all
Reply to author
Forward
0 new messages