I wrote a playbook to send us alerts on rocket chat at work when a system has updates. I love that you can take the output and basically python the crap out of it.
name: List Updates hosts: all gather_facts: yes become: yes become_method: sudo vars_files: vars/ansible_vars.yml
tasks: