--- - hosts: all gather_facts: yes become: yes tasks: - name: Print the package facts ansible.builtin.debug: var: ansible_facts.packages