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.
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?
Subreddit
Post Details
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/ansible/com...