AWX Callback URL

I have a template that is linked to a playbook. Within this playbook I have two plays 1 is targeting localhost and the other is targeting a subset of machines lets just say they are all web servers.

When I am triggering my callback i am passing the X_REMOTE_HOST in order to target a specific web server. However this causing the localhost play to get skipped.

Is there any way to allow the localhost + the specific machine to be called as part of the callback? Or is there another option that I could try

When calling a callback url with X_REMOTE_HOST we are effectively setting a limit on the job template to include only those machines.
When ansible encounters this it chooses to skip the localhost play because its hosts do not match the limit imposed by X_REMOTE_HOST.
You should be able to get around this by changing your localhost play to run on “hosts: all” and then adding the following declarations to all of the tasks in the localhost play:
run_once: True
delegate_to: localhost
connection: local

That should trick ansible into running the first play but all of the tasks will only run on localhost.

-John