Updated specific locations to be searchable, take a look at Las Vegas as an example.

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
143
Link Karma
96
Comment Karma
37
Profile updated: 1 hour ago
Posts updated: 3 weeks 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