mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
allow cert validation to be disabled for Azure modules (#34906)
* `validate` or `ignore` values may be set by module, credential profile, or env. Module has highest precedence, followed by credential profile, then environment, and defaults to `validate` if not otherwise specified. * fixes #33455
This commit is contained in:
parent
d72587084b
commit
9cf217a151
3 changed files with 41 additions and 2 deletions
|
@ -67,6 +67,15 @@ options:
|
|||
C(AzureUSGovernment)), or a metadata discovery endpoint URL (required for Azure Stack). Can also be set via credential file profile or
|
||||
the C(AZURE_CLOUD_ENVIRONMENT) environment variable.
|
||||
default: AzureCloud
|
||||
version_added: 2.4
|
||||
cert_validation_mode:
|
||||
description:
|
||||
- Controls the certificate validation behavior for Azure endpoints. By default, all modules will validate the server certificate, but
|
||||
when an HTTPS proxy is in use, or against Azure Stack, it may be necessary to disable this behavior by passing C(ignore). Can also be
|
||||
set via credential file profile or the C(AZURE_CERT_VALIDATION) environment variable.
|
||||
choices: [validate, ignore]
|
||||
default: null
|
||||
version_added: 2.5
|
||||
requirements:
|
||||
- "python >= 2.7"
|
||||
- "azure >= 2.0.0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue