Skip to content

Error: fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to establish connection to NetBox API"} #15674

Closed Answered by candlerb
jinu18 asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Please edit your original post and delimit your quoted text with three backticks (```) before and after, on a line of their own. Then it will be readable.
  2. This question is missing essential background information (e.g. version of Netbox, version on Ansible and of the module you installed)
  3. In general, questions about Ansible (or a third party Ansible plugin, in this case netbox.netbox.netbox_device) would IMO be best asked on an Ansible list.
  4. If Ansible says it cannot establish connection to Netbox, then it's probably correct. You should look at logs on your server side to see what's going on.

One possibility is that the API token you're providing is invalid. Another possibility is that …

Replies: 2 comments 1 reply

Comment options

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

Answer selected by jinu18
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
Category
Q&A
Labels
None yet
2 participants