Proposal for two fact modules, thoughts?

Internally, a requirement has been brought forth to be able to pull a list of all software installed on a given server, be it Windows or Linux.

I’ll be developing a custom fact module that essentially returns a ‘fact’ formatted version of dpkg -l for linux boxes and a similar thing with windows.

Is this something that would be useful for ansible-core? My initial though is for a windows_software and a linux_software module. Or perhaps even Pkg_facts module.

This should be done in the individual package modules as “state=list”.

We have some provision for this in a few places, though the structure could likely use standardization.

–Michael

Yep, that makes sense, I can start working on that. What do you mean by ‘we have some provision for this in a few places’?

Like yum supported a state=list.

Though we’ve undocumented that. Maybe I’m misremembering.

In any case, I think the best thing to do would be to first come up with a proposed format for the data structure.

Speaking of which, ansible-devel is probably the right forum for that, since this is more about user questions, should you wish to post there in the future.

It’s abit more about the forward-looking development of ansible, API things, how do I build X, and all things that do not exist but could be :slight_smile: