On 07/08/2015 08:05, Randy Bush wrote:
>> Which version of ansible?
> <blush> sorry.
>
> % ansible-playbook --version
> ansible-playbook 2.0.0
> config file =
> configured module search path = None
>
Is that a development version? I've done a "git pull" and the latest
*tagged* version is v1.9.2-1, although there is a *branch* called v2_final
But if I checkout the latest git devel branch, I get the same as you
(below).
Suggest you raise it directly on github, as there's now a nice
standalone test case. In fact, the test case reduces to just this:
~~~
- hosts: localhost
tasks:
- name: run a command
command: date
register: ver_out
changed_when: false
~~~
Note that the bot on github will reject your ticket unless you fill it
in using their template as a starting point.
Cheers,
Brian.
brian@wrn-mon1:~$ ansible-playbook test.yml
PLAY
***************************************************************************
TASK [setup]
*******************************************************************
ok: [localhost]
TASK [run syslog-ng version]
***************************************************
An exception occurred during task execution. To see the full traceback,
use -vvv. The error was: AttributeError: 'tuple' object has no attribute
'iteritems'
fatal: [localhost]: FAILED! => {"changed": false, "failed": true,
"parsed": false}
PLAY RECAP
*********************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1
brian@wrn-mon1:~$ ansible-playbook --version
ansible-playbook 2.0.0 (devel 48840ad498) last updated 2015/08/07
08:17:44 (GMT +100)
lib/ansible/modules/core: (detached HEAD 8412adc4f9) last updated
2015/08/07 08:18:17 (GMT +100)
lib/ansible/modules/extras: (detached HEAD 210ee3febc) last updated
2015/08/07 08:18:33 (GMT +100)
v1/ansible/modules/core: (detached HEAD f8d8af17cd) last updated
2015/08/07 08:18:51 (GMT +100)
v1/ansible/modules/extras: (detached HEAD 495ad450e5) last updated
2015/08/07 08:19:06 (GMT +100)
config file = /etc/ansible/ansible.cfg
configured module search path = /usr/share/ansible