Skip to content
Discussion options

You must be logged in to vote

Ok, I have found a work-around for my problem :

  1. Netbox calls a webhook when a device has changed.
  2. The webhook calls the rest api of awx (in my case) to kick-off an ansible script.
  3. The ansible script does its work, updates the network device.
  4. The ansible script also changes the state / tags of the dcim device IN NETBOX (for example set the device state to fail or whatever).
  5. Now the dcim device is updated in netbox which causes the device-update webhook to be triggered again which kicks awx again.

I only want the webhook to take effect when an USER changed something in netbox, not when an api (awx) is changing stuff in netbox.

Now for the work-around :

I created an api user / token that I…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by bkampsnl
Comment options

You must be logged in to vote
1 reply
@bkampsnl
Comment options

Comment options

You must be logged in to vote
2 replies
@bkampsnl
Comment options

@markkuleinio
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants