Skip to content

Instantly share code, notes, and snippets.

@martineg
Created February 10, 2014 13:38
Show Gist options
  • Save martineg/8916085 to your computer and use it in GitHub Desktop.
Save martineg/8916085 to your computer and use it in GitHub Desktop.
- name: tomcat | Deploy configuration
template: src={{ item }}.j2 dest={{ tomcat_root }}/conf/{{ item }}
owner={{ tomcat_user }} group={{ tomcat_user }}
with_items:
- server.xml
- tomcat-users.xml
- log4j.xml
notify: restart tomcat
@martineg
Copy link
Author

Fails: UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 70: ordinal not in range(128)
If I quote the owner and group variables: owner="{{ tomcat_user }} group="{{ tomcat_user }}" it works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment