ansible rpm compare

April 25, 2013

A while back I wrote this for func – and I found I needed it ported to ansible.

I enhanced it to make it take more than just 2 systems. It can now compare any number of systems to the base system


Takes a first argument of your ‘baseline’ host that’s the host all the other hosts package sets will be compared to.

It grabs the list of rpms installed on each system (just using rpm -qa, I’m lazy, or I could have used the yum list=installed option)

It transforms that output into a set – then does a difference on them each way.

Output looks like this

Packages on not on

Packages on not on


Trivial but should be straightforward to follow how it works in the code.

No idea where else to put it so it goes into my scripts git repo.


One Response to “ansible rpm compare”

  1. Thanks for your posting. Another point is that just being a photographer requires not only problem in catching award-winning photographs but hardships in establishing the best digicam suited to your requirements and most
    especially struggles in maintaining the standard of your camera.

    That is very true and noticeable for those photography addicts that are directly into capturing a nature’s
    captivating scenes : the mountains, the particular forests, the wild or the seas.
    Going to these adventurous places unquestionably
    requires a digital camera that can surpass the wild’s harsh conditions.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: