tower callbacks

173 views
Skip to first unread message

Levi Notik

unread,
Nov 26, 2014, 9:42:00 AM11/26/14
to ansible...@googlegroups.com
I created a simple playbook to test this out and I baked an AMI which curls the callback endpoint on startup (added as user data).

If my inventory needs to contain the instance that triggers the callback, how does that happen if, by definition, the machine that's just coming online is not in my inventory? Does the request to the callback endpoint trigger an inventory sync?

Also, after debugging this for a bit, I'm seeing that the response from the callback endpoint is {"msg":"No matching host could be found"}. 

Any ideas?

Levi Notik

unread,
Nov 26, 2014, 9:54:25 AM11/26/14
to ansible...@googlegroups.com
I figured this out. Looks like I had issues with the security group for my tower instance. 

James Martin

unread,
Nov 26, 2014, 10:01:57 AM11/26/14
to ansible...@googlegroups.com
Levi,

Please send Tower support requests to sup...@ansible.com in the future.  To answer your question, the call back request will indeed trigger an inventory sync if the host that is calling back is not found in the inventory.

Thanks,

James


On Wednesday, November 26, 2014 9:42:00 AM UTC-5, Levi Notik wrote:
Reply all
Reply to author
Forward
0 new messages