fixing aiuth source (#42923)

pull/40521/head
Zim Kalinowski 6 years ago committed by Yunge Zhu
parent aefe963483
commit 750774d768

@ -23,8 +23,7 @@ except ImportError:
AZURE_COMMON_ARGS = dict( AZURE_COMMON_ARGS = dict(
auth_source=dict( auth_source=dict(
type='str', type='str',
choices=['auto', 'cli', 'env', 'credential_file', 'msi'], choices=['auto', 'cli', 'env', 'credential_file', 'msi']
default='auto'
), ),
profile=dict(type='str'), profile=dict(type='str'),
subscription_id=dict(type='str', no_log=True), subscription_id=dict(type='str', no_log=True),

@ -70,6 +70,7 @@ options:
auth_source: auth_source:
description: description:
- Controls the source of the credentials to use for authentication. - Controls the source of the credentials to use for authentication.
- If not specified, ANSIBLE_AZURE_AUTH_SOURCE environment variable will be used and default to C(auto) if variable is not defined.
- C(auto) will follow the default precedence of module parameters -> environment variables -> default profile in credential file - C(auto) will follow the default precedence of module parameters -> environment variables -> default profile in credential file
C(~/.azure/credentials). C(~/.azure/credentials).
- When set to C(cli), the credentials will be sources from the default Azure CLI profile. - When set to C(cli), the credentials will be sources from the default Azure CLI profile.
@ -84,7 +85,6 @@ options:
- credential_file - credential_file
- env - env
- msi - msi
default: auto
version_added: 2.5 version_added: 2.5
api_profile: api_profile:
description: description:

Loading…
Cancel
Save