Ansible Autoscaling with Tower and AWS blog post, instances are NOT authorized by server

187 views
Skip to first unread message

einarc

unread,
May 2, 2016, 10:36:33 PM5/2/16
to Ansible Project
Hello,

So I followed this post:


And managed to deploy the infrastructure, the problem is the callback isn't working. I keep getting no available hosts:


curl -k -s -i --data host_config_key=mykey_here https://My_server_here/api/v1/job_templates/759/callback/

HTTP/1.1 400 BAD REQUEST

Date: Tue, 03 May 2016 01:59:32 GMT

Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5

Vary: Accept,Cookie

Allow: GET, POST, HEAD, OPTIONS

X-API-Time: 0.037s

Content-Length: 43

Connection: close

Content-Type: application/json


{"msg": "No matching host could be found!"}


Instructions to set inventory are here:

https://github.com/jsmartin/ansible-tower-ec2/blob/master/README.md

Matt Martz

unread,
May 2, 2016, 10:39:05 PM5/2/16
to ansible...@googlegroups.com
For tower questions, please contact sup...@ansible.com or use https://support.ansible.com

This list is for the open source Ansible project.
--
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/4bb67f24-1d34-4f24-925e-6950719864dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net

einarc

unread,
May 2, 2016, 11:19:11 PM5/2/16
to Ansible Project
I noticed that I was parsing my instances in a public subnet, I even modified the playbook to add a public Ip at the LC level and configured my subnet to be Public. So when the playbook runs the instance is actually public so the Callback doesn't return anything. The instances should be private so the Inventory can work correctly.
Reply all
Reply to author
Forward
0 new messages