mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Use ansible network env vars to authentication on fortigates (#29499)
This commit is contained in:
parent
bc6e015a86
commit
3622801ad4
1 changed files with 3 additions and 2 deletions
|
@ -31,6 +31,7 @@ import time
|
|||
import traceback
|
||||
|
||||
from ansible.module_utils._text import to_native
|
||||
from ansible.module_utils.basic import env_fallback
|
||||
|
||||
|
||||
# check for pyFG lib
|
||||
|
@ -45,8 +46,8 @@ fortios_argument_spec = dict(
|
|||
file_mode=dict(type='bool', default=False),
|
||||
config_file=dict(type='path'),
|
||||
host=dict(),
|
||||
username=dict(),
|
||||
password=dict(type='str', no_log=True),
|
||||
username=dict(fallback=(env_fallback, ['ANSIBLE_NET_USERNAME'])),
|
||||
password=dict(fallback=(env_fallback, ['ANSIBLE_NET_PASSWORD']), no_log=True),
|
||||
timeout=dict(type='int', default=60),
|
||||
vdom=dict(type='str'),
|
||||
backup=dict(type='bool', default=False),
|
||||
|
|
Loading…
Reference in a new issue