Connecting to localhost and 127.0.0.1

15 views
Skip to first unread message

Dana Christo

unread,
Jun 13, 2016, 5:01:19 PM6/13/16
to Ansible Project
When trying to run a playbook without specifying -i "localhost," -c local I get that the host is unreachable, even though I specify the localhost in my /etc/ansible/hosts file:








Is there something I'm missing in the hosts file? Here is the output from running just ansible-playbook helloworld.yml:




Peter Mooshammer

unread,
Jun 14, 2016, 1:33:35 AM6/14/16
to Ansible Project
Can you ssh to localhost without a password?
Try: ssh localhost

If that works add -vvvv to the ansible command.
Also why do you want to use ssh to run stuff on your system?
Reply all
Reply to author
Forward
0 new messages