- name: run syslog-ng version
      command: syslog-ng --version
      register: ver_out
      changed_when: false

    - name: set ver
      set_fact: ver="{{ ver_out.stdout.splitlines()[0]|regex_replace('[^\d.]+', 
'') }}"

is getting me

fatal: [frobnitz.edu]: FAILED! => {"msg": "Traceback (most recent call last):
  File 
\"/root/.ansible/tmp/ansible-tmp-1438822667.55-270531375236680/command\", line 
2106, in <module>
    main()
  File 
\"/root/.ansible/tmp/ansible-tmp-1438822667.55-270531375236680/command\", line 
158, in main
    module = CommandModule(argument_spec=dict())
  File 
\"/root/.ansible/tmp/ansible-tmp-1438822667.55-270531375236680/command\", line 
607, in __init__
    self._check_for_check_mode()
  File 
\"/root/.ansible/tmp/ansible-tmp-1438822667.55-270531375236680/command\", line 
1133, in _check_for_check_mode
    for (k,v) in self.params.iteritems():
AttributeError: 'tuple' object has no attribute 'iteritems'
", "failed": true, "changed": false, "parsed": false, "invocation": 
{"module_name": "command", "module_args": {"_raw_params": "syslog-ng 
--version"}}}

clue bat, please

randy

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/m2bnelusc9.wl%25randy%40psg.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to