Replies: 1 comment 1 reply
-
now I hardcoded it
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello.
I have awx with webhook to run deploy. And I'd like to pass netbox request body to awx.
AWX requere prefix "extra_vars" in POST like
{"extra_vars":{"event": "updated", "username": "admin", ... , "tags": []}}
If "body template" is empty for webhook in Netbox it send all in body. But if no "extra_vars" prefix AWX skip vars
{"event": "updated", "username": "admin", ... , "tags": []}
I can write template like {"extra_vars":{{data}} ..... prechange postchange username } but I'd like only to add "extra_vars" before whole and every request body.
Is there any variable for a whole body? or Can I add prefix in any ways?
Beta Was this translation helpful? Give feedback.
All reactions