adhoc command to check all installed packets and their versions

17 views
Skip to first unread message

Dimitar Ivanov

unread,
Mar 7, 2016, 8:56:51 AM3/7/16
to Ansible Project
Hi all,
I'm wondering how to check all installed packets and their versions in the box
I can send
ansible all -i /path-to-the-hosts/hosts  -a "rpm -q glibc"
but how to check all installed packets
locally I'm using "yum list installed > packs.txt"
thanks in advance
Best Regards

Johannes Kastl

unread,
Mar 7, 2016, 3:25:40 PM3/7/16
to ansible...@googlegroups.com
Am 07.03.16 schrieb Dimitar Ivanov:

> locally I'm using "yum list installed > packs.txt"

Why not use that call?

ansible -m command -a "yum list installed"

(I tested locally with -a "rpm -qa", which worked)

Johannes


signature.asc
Reply all
Reply to author
Forward
0 new messages