Hi, A quick look at the packages shows they are security fixes, if you add `security: yes` does that solve your issue ?
Steve. > On 28 Feb 2024, at 14:25, Dimitri Yioulos <[email protected]> wrote: > > The following playbook gets packages available for update, returning package > name and version: > > --- > > - hosts: all > gather_facts: false > > vars: > my_packages: "{{ dict(packages.results|groupby('name')) }}" > > tasks: > > - name: Check packages to upgrade > dnf: > list: updates > register: packages > > - name: Show packages to upgrade > debug: > msg: | > {% for name,versions in my_packages.items() %} > {% set max_ver=versions|map(attribute='version')|max %} > {% set p=versions|selectattr('version', '==', max_ver)|list %} > {{ name }}-{{ p.0.version }}-{{ p.0.release }} > {% endfor %} > > However, I note that it doesn't pickup up dependencies like these: > > Installing dependencies: > grub2-tools-efi x86_64 1:2.06-70.el9_3.2 > rhel-9-for-x86_64-baseos-rpms 543k > ~ > > Installing weak dependencies: > kernel-devel x86_64 5.14.0-362.18.1.el9_3 > rhel-9-for-x86_64-appstream-rpms 24 M > ~ > > What do i need to add to the playbook so that all packages available for > update are captured? > > > -- > 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] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/80e55f09-42f0-460a-982b-59fb4b36ae59n%40googlegroups.com > > <https://groups.google.com/d/msgid/ansible-project/80e55f09-42f0-460a-982b-59fb4b36ae59n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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/2D9F5741-DABA-4321-9875-2F69C9411075%40gmail.com.
