POST 
for 
https://docs.ansible.com/ansible-tower/latest/html/towerapi/api_ref.html#/Job_Templates/Job_Templates_job_templates_github_create

https://{{my_url}}/api/v2/job_templates/33/github/

For HTTP Header I choose:
Authorization: Bearer {Token from AWX job template }}
Content-Type: application/json



[email protected] schrieb am Sonntag, 18. September 2022 um 21:17:43 
UTC+2:

> You can substitute w.x.y.z for the ip address or name of the web server, 
> and change words or passwords and usernames to something else. It's hard to 
> diagnose an issue if you don't know what the format of the command is you 
> are using. I know, from personal experience, that just the number of 
> spaces, quotes, etc are VERY sensitive as to placement. 
>
>
> On Sunday, September 18, 2022 at 2:55:56 PM UTC-4 [email protected] 
> wrote:
>
>> I tried to POST that via POSTMAN. Also there I got a HTTP403 Forbidden.
>>
>> Due to sensitive data I can't really post my example here as it contains 
>> company data.
>> But according to the HowTo guide it should be straight forward.
>>
>> [email protected] schrieb am Sonntag, 18. September 2022 um 18:56:10 
>> UTC+2:
>>
>>> Out of curiosity, what command is being used to call the github when you 
>>> get the error? 
>>> Can you give a sample / example?
>>> Does the command work at a command line level?
>>>
>>>
>>> On Sunday, September 18, 2022 at 12:23:47 PM UTC-4 
>>> [email protected] wrote:
>>>
>>>> I just  followed the following guide
>>>>
>>>> https://docs.ansible.com/ansible-tower/latest/html/userguide/webhooks.html
>>>>
>>>> Should be straight forward. But GitHub reports that with an 403 
>>>> permission denied.
>>>>
>>>> So my question is, do i need to configure something else?
>>>>
>>>> Maik Brauer via Outlook <https://aka.ms/qtex0l> für iOS
>>>> ------------------------------
>>>> *Von:* [email protected] <[email protected]> im 
>>>> Auftrag von Wei-Yen Tan <[email protected]>
>>>> *Gesendet:* Sunday, September 18, 2022 2:27:48 PM
>>>>
>>>> *An:* [email protected] <[email protected]>
>>>> *Betreff:* Re: [ansible-project] GitHub Webhook not working
>>>> What's in your step that triggers the awx web hook? 
>>>>
>>>> Get Outlook for iOS <https://aka.ms/o0ukef>
>>>> ------------------------------
>>>> *From:* 'Maik Brauer' via Ansible Project <[email protected]>
>>>> *Sent:* Sunday, September 18, 2022 4:00:42 PM
>>>> *To:* [email protected] <[email protected]>
>>>> *Subject:* Re: [ansible-project] GitHub Webhook not working 
>>>>  
>>>> Because Ansible throws the error, that this request is denied. GitHub 
>>>> sends a webhook to Ansible and ansible denied.
>>>> So I do also not get your statement. Whtnis wrong on my question in 
>>>> asking this as webhook integration is very well know with GitLab and 
>>>> GitHub.
>>>>
>>>> Maik Brauer via Outlook <https://aka.ms/qtex0l> für iOS
>>>> ------------------------------
>>>> *Von:* [email protected] <[email protected]> im 
>>>> Auftrag von Dick Visser <[email protected]>
>>>> *Gesendet:* Sunday, September 18, 2022 6:26:11 AM
>>>> *An:* [email protected] <[email protected]>
>>>> *Betreff:* Re: [ansible-project] GitHub Webhook not working 
>>>>  
>>>> I have no idea what this has to do with ansible...
>>>>
>>>>
>>>> On Sat, 17 Sep 2022 at 23:33, 'Maik Brauer' via Ansible Project <
>>>> [email protected]> wrote:
>>>>
>>>> Apart from the standard configuration on a job template to connect 
>>>> everything with webhook service from github, it always turns into 403 
>>>> Permission denied.
>>>> Anything else to configure?
>>>>
>>>> -- 
>>>> 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 view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/ansible-project/GVXP194MB1903C9965B556E8657A93CEDA44B9%40GVXP194MB1903.EURP194.PROD.OUTLOOK.COM
>>>>  
>>>> <https://groups.google.com/d/msgid/ansible-project/GVXP194MB1903C9965B556E8657A93CEDA44B9%40GVXP194MB1903.EURP194.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> -- 
>>>> Sent from Gmail Mobile
>>>>
>>>> -- 
>>>> 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 view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/ansible-project/CAF8BbLa%3D-PH%2BOBbGRAuFVwcDo06dVp5opVQ3J6uKhm%3D-ibvT3Q%40mail.gmail.com
>>>>  
>>>> <https://groups.google.com/d/msgid/ansible-project/CAF8BbLa%3D-PH%2BOBbGRAuFVwcDo06dVp5opVQ3J6uKhm%3D-ibvT3Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> -- 
>>>> 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 view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/ansible-project/AS8P194MB19209016A12C057F148E6B41A44A9%40AS8P194MB1920.EURP194.PROD.OUTLOOK.COM
>>>>  
>>>> <https://groups.google.com/d/msgid/ansible-project/AS8P194MB19209016A12C057F148E6B41A44A9%40AS8P194MB1920.EURP194.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> -- 
>>>> 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 view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/ansible-project/SYBP282MB3525FB39993A28E61AE5CFAFAD4A9%40SYBP282MB3525.AUSP282.PROD.OUTLOOK.COM
>>>>  
>>>> <https://groups.google.com/d/msgid/ansible-project/SYBP282MB3525FB39993A28E61AE5CFAFAD4A9%40SYBP282MB3525.AUSP282.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cac211c0-d2e2-46f8-a066-e3d2ff5d8f56n%40googlegroups.com.

Reply via email to