I need to call tower callback API when EC2 instance is getting 
launched/provisioned to avoid manual launch job through tower console , I 
use below command in unix script added in the user_data section of aws 
launch configuration 
 curl --data "host_config_key=XXXX" 
https://XXX443/api/v2/job_templates/XXX/callback/


even when I run above curl command from that hosted EC2 instance still its 
giving same error  but everything is good when launching the job through 
tower console. Please help


On Thursday, August 30, 2018 at 2:48:32 PM UTC-4, Jonathan Lozada De La 
Matta wrote:
>
> Can you provide more details on what exactly you are trying to accomplish?
>
> On Thu, Aug 30, 2018 at 2:47 PM <[email protected] <javascript:>> wrote:
>
>>
>> I have setup inventory and job template and  the call back is returning  
>> "No matching host could be found"  but actually the tower console I could 
>> see host listed in the inventory and even attempted synch and even I could 
>> able to run the job template successfully
>>
>> could someone please help me why callback is not working but tower 
>> console is working fine.
>>
>> Thank you!
>>
>> -- 
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/91998ed9-0225-4ab9-881f-2311595d9885%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/91998ed9-0225-4ab9-881f-2311595d9885%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
>
> Jonathan lozada de la matta
>
> AUTOMATION PRACTICE
>
>
>  
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a40117b5-5eb1-4b4a-8bd9-ae1d8d421490%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to