tower callbacks

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?

I figured this out. Looks like I had issues with the security group for my tower instance.

Levi,

Please send Tower support requests to support@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