localhost has group_vars undefined

386 views
Skip to first unread message

Robert Osborne

unread,
Jul 23, 2014, 11:08:00 AM7/23/14
to ansible...@googlegroups.com
In my inventory I have:

[buildserver]
localhost ansible_connection=local

But the playbooks associated with [buildserver] all fail with "undefined" variables;  all the group_vars associated with the playbook are seemingly unset for a localhost.

Ansible also seems to be very adroit at figuring out what localhost is ... if I use the external IP address instead it works it out and again fails.

Note that buildserver and the matching playbooks all work on an external server with the same OS.

Any thoughts?

Michael DeHaan

unread,
Jul 23, 2014, 6:08:44 PM7/23/14
to ansible...@googlegroups.com
Could we see more about your playbook structure?

Sounds like your group_vars/ is not at the right location.

With the later part, I apologize in that I don't know what "fails" means, so I will need more specifics as to the nature of the beast. 


--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b7616990-c97d-4197-96c2-acd2013128ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages