diff --git a/changelogs/fragments/9178-fix-proxmox-connection-without-certs.yml b/changelogs/fragments/9178-fix-proxmox-connection-without-certs.yml new file mode 100644 index 00000000000..7105062d2a3 --- /dev/null +++ b/changelogs/fragments/9178-fix-proxmox-connection-without-certs.yml @@ -0,0 +1,2 @@ +bugfixes: + - proxmox inventory plugin - fix connection without certificates (https://github.com/ansible-collections/community.general/pull/9178). diff --git a/plugins/inventory/proxmox.py b/plugins/inventory/proxmox.py index 3ce4f789a37..acd0c5b8b02 100644 --- a/plugins/inventory/proxmox.py +++ b/plugins/inventory/proxmox.py @@ -312,7 +312,7 @@ def _get_json(self, url, ignore_errors=None): data = [] s = self._get_session() while True: - ret = s.get(url, headers=self.headers) + ret = s.get(url, headers=self.headers, verify=s.verify) if ignore_errors and ret.status_code in ignore_errors: break ret.raise_for_status()