Can I gather facts without python on remote systems

37 views
Skip to first unread message

rrrki...@gmail.com

unread,
Apr 22, 2015, 9:58:50 AM4/22/15
to ansible...@googlegroups.com
Gather facts with Raw module 

Brian Coca

unread,
Apr 22, 2015, 10:01:54 AM4/22/15
to ansible...@googlegroups.com
You cannot use the ansible built in facts as they are implemented in
python but you can retrun your own custom ones, you just have to
return a json structure that starts with { "ansible_facts": ...}


--
Brian Coca

Yassen Damyanov

unread,
Apr 22, 2015, 10:33:22 AM4/22/15
to ansible...@googlegroups.com

Or you can also bootstrap the remote node installing python using the script module (if okay in your case).
(You have to, of course, suppress facts gathering for that step.)
Y.
Reply all
Reply to author
Forward
0 new messages