Replies: 3 comments 2 replies
-
Try using validate_certs=False in the loookup. I think it's a bug in the documentation which we haven't managed to fix because ansible-doc keep changing it back to yes/no. |
Beta Was this translation helpful? Give feedback.
-
I tried with |
Beta Was this translation helpful? Give feedback.
-
In an attempt to reproduce:
Playbook:
Output:
If I change validate_certs to True:
My python packages:
And ansible collection:
So I don't think there's anything wrong with the ansible collection. Have you tried doing a straight up pynetbox connection and getting it to work? |
Beta Was this translation helpful? Give feedback.
-
ISSUE TYPE
SOFTWARE VERSIONS
Ansible:
ansible [core 2.12.1]
python version 3.9.9 [GCC 11.2.0]
jinja version = 2.11.3
libyaml = True
NetBox:
v3.1.5
Collection:
3.5.1
SUMMARY
I have a server running Netbox with self-signed certificates.
Using netbox.nb_lookup against it fails with
SSL: CERTIFICATE_VERIFY_FAILED
even though I have specifiedvalidate_certs='no'
.The plugin netbox.nb_inventory works fine against the same Netbox server as long as I specify
validate_certs: False
.The same playbook (with modified token and api_endpoint) works against another install of Netbox with a properly signed certificate.
STEPS TO REPRODUCE
EXPECTED RESULTS
A list of devices should be printed out.
ACTUAL RESULTS
Beta Was this translation helpful? Give feedback.
All reactions