mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00: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:
@@ -404,3 +404,15 @@ You can execute the playbook with something like:
|
||||
.. code-block:: bash
|
||||
|
||||
$ ansible-playbook -i ./ansible/contrib/inventory/azure_rm.py test_azure_inventory.yml
|
||||
|
||||
|
||||
Disabling certificate validation on Azure endpoints
|
||||
...................................................
|
||||
|
||||
When an HTTPS proxy is present, or when using Azure Stack, it may be necessary to disable certificate validation for
|
||||
Azure endpoints in the Azure modules. This is not a recommended security practice, but may be necessary when the system
|
||||
CA store cannot be altered to include the necessary CA certificate. Certificate validation can be controlled by setting
|
||||
the "cert_validation_mode" value in a credential profile, via the "AZURE_CERT_VALIDATION_MODE" environment variable, or
|
||||
by passing the "cert_validation_mode" argument to any Azure module. The default value is "validate"; setting the value
|
||||
to "ignore" will prevent all certificate validation. The module argument takes precedence over a credential profile value,
|
||||
which takes precedence over the environment value.
|
||||
|
||||
Reference in New Issue
Block a user