The fact gathering code lives here:

https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/facts.py



------------------ 原始邮件 ------------------
发件人: Mike Fennemore <[email protected]>
发送时间: 2016年9月13日 18:54
收件人: Ansible Project <[email protected]>
主题: [ansible-project] Re: Extend setup module



Nevermind, to answer my own question 
http://docs.ansible.com/ansible/developing_modules.html#module-provided-facts . 
Although this does add the hassle of adding a custom module to playbooks.It 
would be nice to have a hook to add a module to run on playbook execution like 
the setup module though.

On Tuesday, September 13, 2016 at 11:14:40 AM UTC+2, Mike Fennemore wrote:We 
have a internal CMDB that gathers facts from systems using the setup module on 
playbook execution. Is there a way to extend the setup module to include extra 
information?From what I have read the local facts would work for Linux systems 
but the path wouldn't exist on Windows systems.



 

 -- 
 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 [email protected].
 To post to this group, send email to [email protected].
 To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7eb4f242-dcd1-4f9a-8152-6a2f088775a8%40googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/tencent_51C23C5F4CCA6D82699D89F5%40qq.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to