Proposal for two fact modules, thoughts?

30 views
Skip to first unread message

J Dav

unread,
Aug 22, 2014, 3:15:03 PM8/22/14
to ansible...@googlegroups.com
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.


Michael DeHaan

unread,
Aug 22, 2014, 4:05:25 PM8/22/14
to ansible...@googlegroups.com
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




--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e5a84970-4965-4f12-ada3-8c58a42aa5da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

J Dav

unread,
Aug 22, 2014, 7:03:34 PM8/22/14
to ansible...@googlegroups.com
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'?


--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/Ag7oGbshHFw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.

To post to this group, send email to ansible...@googlegroups.com.

Michael DeHaan

unread,
Aug 22, 2014, 7:05:30 PM8/22/14
to ansible...@googlegroups.com
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 :)

 


Reply all
Reply to author
Forward
0 new messages