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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Gather facts with Raw module
Brian Coca
unread,
Apr 22, 2015, 10:01:54 AM4/22/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.