I am getting a similar error when running my playbook with '--step' with Ansible 1.8.4:
$ ansible-playbook -i inventory/dse/dse text.yml PLAY [all] ******************************************************************** GATHERING FACTS *************************************************************** ok: [dse02] ok: [twp01] TASK: [common | Build inventory group] **************************************** ok: [dse02] => (item=dse02) ok: [dse02] => (item=twp01) TASK: [common | Reload facts after updating site group] *********************** ok: [dse02] ok: [twp01] TASK: [common | Set JBoss facts] ********************************************** skipping: [dse02] skipping: [twp01] PLAY RECAP ******************************************************************** dse02 : ok=3 changed=0 unreachable=0 failed=0 twp01 : ok=3 changed=0 unreachable=0 failed=0 $ ansible-playbook -i inventory/dse/dse test.yml --step PLAY [all] ******************************************************************** GATHERING FACTS *************************************************************** ok: [twp01] ok: [dse02] Traceback (most recent call last): File "/usr/bin/ansible-playbook", line 326, in <module> sys.exit(main(sys.argv[1:])) File "/usr/bin/ansible-playbook", line 266, in main pb.run() File "/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py", line 347, in run if not self._run_play(play): File "/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py", line 740, in _run_play if not self._run_task(play, task, False): File "/usr/lib/python2.6/site-packages/ansible/playbook/__init__.py", line 474, in _run_task self.callbacks.on_task_start(template(play.basedir, name, task.module_vars, lookup_fatal=False, filter_fatal=False), is_handler) File "/usr/lib/python2.6/site-packages/ansible/callbacks.py", line 636, in on_task_start msg = msg.encode(sys.stdout.encoding, errors='replace') TypeError: encode() takes no keyword arguments # test.yml - hosts: all roles: - common -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/538bcf13-6041-4518-888e-5107369279c5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.