Hello,

I'm trying to find a way to list all updated yum packages after:

- name: Upgrade all packages
  yum:
    name: '*'
    state: latest
  register: yumupdateoutput


Tried many combinations such as:

- debug:
    var: yumupdateoutput.results[0]
  ignore_errors: true


- debug:
    var: yumupdateoutput.results[0].split('/n')
  ignore_errors: true


- debug:
    msg: "{{yumupdateoutput.results[0].split('/n')}}"
  ignore_errors: true

But neither gets me any closer to what I would really want, a clean list of 
all updated packages,with proper newlines instead of '\n''s.

Grtz

Willem

-- 
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/57b9f8da-6dfc-42af-a0d7-49206f1c9fa9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to