Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

5
Get package names and versions from package _facts
Post Body

I have this user who wants me to build him a report file using ansible package_facts to determine what rpm's are on his 5 hosts. I want to use package_facts instead of rpm -qa to show him the ansible native way. However, I cant seem to make a list of lists that looks like the following:
- name: "{{ item.name }}" Version: "{{ item.version }}"

- name: "{{ item.name }}" Version: "{{ item.version }}"

- etc

-etc

loop: ansible_facts.packages

Can anyone direct me to a blog post or suggest an answer on how to write this out?

Author
Account Strength
80%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
205
Link Karma
158
Comment Karma
37
Profile updated: 5 days ago
Posts updated: 2 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago