[Server-devel] Ansible facts listing

George Hunt georgejhunt at gmail.com
Sat Nov 16 12:17:09 EST 2013


I've been perplexed as to why the documentation about listing ansible facts
seemed to fail.

ie "ansible localhost -m setup --connection=local" returns "no hosts found"

What I discovered is that /etc/ansible/hosts file needs to be initialized
with:

[localhost]
127.0.0.1

Then the facts listing returns the desired information.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/server-devel/attachments/20131116/a485bee0/attachment.html>


More information about the Server-devel mailing list