So, in bash I can get some info from 'yum history'.

Get the last 'yum update':

yum history | grep Update | head -1

Get the very last call to yum:

yum history | awk '/^----/{ n=NR+1 }n && n<=NR && NR<(n+1){ print }'

How do I parse that with an ansible regex?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAK2viQV1x670%3DyF7LvvkhkGnSZ2svXFX3EVVPXHfnG-sM21ToQ%40mail.gmail.com.

Reply via email to