Hello,
So I followed this post:
https://www.ansible.com/blog/autoscaling-infrastructures
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
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