Hey Toshio! Thanks for your reply.
Since these are production machines, I can only use 1.7.2 at the moment. However, I installed the newest ppa version (1.9.2) on a VM cluster to test.
The error stills pops up. The error happens when it tries running the first task from the second playbook. However, commenting that task out just makes the error pop up in the next task. So I believe it’s already carrying it from the first playbook, after completing the “Check if new upstart job is needed” task.
The LC and LANG settings are “en_US.UTF-8” in the remote box.
-vvvv doesn’t give me much new info. Here’s the compressed output when the error occurs:
ok: [anakin] => {“changed”: false, “gid”: 0, “group”: “root”, “mode”: “0644”, “owner”: “root”, “path”: “/etc/init/syslog-ng.conf”, “size”: 615, “state”: “file”, “uid”: 0}
TASK: [syslog-client | debug var=upstart] *******************************
ESTABLISH CONNECTION FOR USER: ******
ok: [anakin] => {
“var”: {
“upstart_times”: {
“changed”: false,
“gid”: 0,
“group”: “root”,
“invocation”: {
“module_args”: “src=syslog-ng-upstart.conf.j2 dest=/etc/init/syslog-ng.conf owner=root group=root mode=0644 backup=yes”,
“module_name”: “template”
},
“mode”: “0644”,
“owner”: “root”,
“path”: “/etc/init/syslog-ng.conf”,
“size”: 615,
“state”: “file”,
“uid”: 0
}
}
}
TASK: [syslog-client | Stop the syslog-ng service before upgrading to upstart] ***
Traceback (most recent call last):
File “/usr/bin/ansible-playbook”, line 324, in
sys.exit(main(sys.argv[1:]))
File “/usr/bin/ansible-playbook”, line 264, in main
pb.run()
File “/usr/lib/pymodules/python2.7/ansible/playbook/init.py”, line 348, in run
if not self._run_play(play):
File “/usr/lib/pymodules/python2.7/ansible/playbook/init.py”, line 789, in _run_play
if not self._run_task(play, task, False):
File “/usr/lib/pymodules/python2.7/ansible/playbook/init.py”, line 497, in _run_task
results = self._run_task_internal(task, include_failed=include_failed)
File “/usr/lib/pymodules/python2.7/ansible/playbook/init.py”, line 439, in _run_task_internal
results = runner.run()
File “/usr/lib/pymodules/python2.7/ansible/runner/init.py”, line 1493, in run
results = [ self._executor(h, None) for h in hosts ]
File “/usr/lib/pymodules/python2.7/ansible/runner/init.py”, line 590, in _executor
msg = str(ae)
UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 40-41: ordinal not in range(128)