mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Make validate_certs togglable for httpapi (#41538)
* Make validate_certs togglable for httpapi * Add `version_added`
This commit is contained in:
parent
46dbb3e1e8
commit
dd932c9ace
1 changed files with 8 additions and 1 deletions
|
@ -66,6 +66,13 @@ options:
|
|||
default: False
|
||||
vars:
|
||||
- name: ansible_httpapi_use_ssl
|
||||
validate_certs:
|
||||
version_added: '2.7'
|
||||
description:
|
||||
- Whether to validate SSL certificates
|
||||
default: True
|
||||
vars:
|
||||
- name: ansible_httpapi_validate_certs
|
||||
timeout:
|
||||
type: int
|
||||
description:
|
||||
|
@ -296,7 +303,7 @@ class Connection(ConnectionBase):
|
|||
'''
|
||||
url_kwargs = dict(
|
||||
url_username=self.get_option('remote_user'), url_password=self.get_option('password'),
|
||||
timeout=self.get_option('timeout'),
|
||||
timeout=self.get_option('timeout'), validate_certs=self.get_option('validate_certs'),
|
||||
)
|
||||
url_kwargs.update(kwargs)
|
||||
|
||||
|
|
Loading…
Reference in a new issue