Provisioning Callbacks "No matching hosts found" issue

, ,

Hi Guys,

let me explain my current infra.

  1. I created a VM in my Local Machine with Ansible & Awx installed and acting as master
  2. Using GCP&AWS to spin up slave machines
  3. Now when calling “/launch” API directly its working fine.
    eg: “http://192.168.xxx.xx/api/v2/job_templates/14/launch/
  4. But when using Provisioning callbacks its showing error
    e.g: http://192.168.xxx.xx/api/v2/job_templates/14/callback/

error: “No matching hosts could be found

Both GCP & AWS giving the same error and same results

Note:

  1. The Dynamic inventory is getting updated but when running the callback API, but after that, while running the template it’s giving the above error
  2. In the Playbook I am mentioning to execute on localhost like
  • hosts: localhost
  1. In the dynamic Inventory I also added my Localhost(the local machine)
  2. All testing is being done with Postman

Requirement:
I need Cloud slaves to use provisioning callbacks to ask the tower to run a job against itself and configure the servers.

(attachments)

Could anyone please help me o resolve the issue

The host must exist in the inventory before a callback will work. It must match the host details as well.

Hi All,

Does anybody have any idea n this stucked here for days now

I think what is happening is that the updated inventory (from your current job run)
is not being recognised. See if you can update the inventory source AFTER the machine has been created. . . OR use a workflow.