Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

'ascii' codec can't decode byte 0xe2 in position 140 #3884

Open
VenkateshJavvaji opened this issue Sep 23, 2019 · 0 comments
Open

'ascii' codec can't decode byte 0xe2 in position 140 #3884

VenkateshJavvaji opened this issue Sep 23, 2019 · 0 comments

Comments

@VenkateshJavvaji
Copy link

I am receiving the following error when performing the below task:

TASK [tomcat : Copy default server.xml to host] ********************************
task path: /Users/user/GIT/branch/dir/tomcat/tasks/main.yml: line number
ESTABLISH SSH CONNECTION FOR USER: user name
SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=username -o ConnectTimeout=10 -o ControlPath=/Users/user/.ansible/cp/ansible-ssh-%h-%p-%r -tt server '( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1569261149.81-273140918605445 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1569261149.81-273140918605445 )" )'
fatal: [playbook name]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"dest": "/opt/tomcat/default/conf/", "src": "server.xml"}, "module_name": "template"}, "msg": "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 140: ordinal not in range(128)"}

My task is:

  • name: Copy default server.xml to host
    template: src=server.xml dest="{{tomcat_home}}/conf/"
    when: not _custom_server_xml.stat.exists

I am running ansible 2.0.0

NOTE: we are trying to upgrade our ansible playbooks from version 1.9.4 to the latest

Any help is appreciated

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant