|
|
|
@ -39,7 +39,7 @@ options:
|
|
|
|
|
description: iDRAC username.
|
|
|
|
|
type: str
|
|
|
|
|
required: True
|
|
|
|
|
idrac_pwd:
|
|
|
|
|
idrac_password:
|
|
|
|
|
description: iDRAC user password.
|
|
|
|
|
type: str
|
|
|
|
|
required: True
|
|
|
|
@ -55,7 +55,7 @@ options:
|
|
|
|
|
description: Network share user in the format 'user@domain' or 'domain\\user' if user is
|
|
|
|
|
part of a domain else 'user'. This option is mandatory for CIFS Network Share.
|
|
|
|
|
type: str
|
|
|
|
|
share_pwd:
|
|
|
|
|
share_password:
|
|
|
|
|
description: Network share user password. This option is mandatory for CIFS Network Share.
|
|
|
|
|
type: str
|
|
|
|
|
share_mnt:
|
|
|
|
@ -89,10 +89,10 @@ EXAMPLES = """
|
|
|
|
|
idrac_firmware:
|
|
|
|
|
idrac_ip: "192.168.0.1"
|
|
|
|
|
idrac_user: "user_name"
|
|
|
|
|
idrac_pwd: "user_pwd"
|
|
|
|
|
idrac_password: "user_password"
|
|
|
|
|
share_name: "192.168.0.0:/share"
|
|
|
|
|
share_user: "share_user_name"
|
|
|
|
|
share_pwd: "share_user_pwd"
|
|
|
|
|
share_password: "share_user_pwd"
|
|
|
|
|
share_mnt: "/mnt/share"
|
|
|
|
|
reboot: True
|
|
|
|
|
job_wait: True
|
|
|
|
@ -152,7 +152,7 @@ def update_firmware(idrac, module):
|
|
|
|
|
isFolder=False,
|
|
|
|
|
creds=UserCredentials(
|
|
|
|
|
module.params['share_user'],
|
|
|
|
|
module.params['share_pwd'])
|
|
|
|
|
module.params['share_password'])
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
idrac.use_redfish = True
|
|
|
|
@ -181,12 +181,12 @@ def main():
|
|
|
|
|
argument_spec={
|
|
|
|
|
"idrac_ip": {"required": True, "type": 'str'},
|
|
|
|
|
"idrac_user": {"required": True, "type": 'str'},
|
|
|
|
|
"idrac_pwd": {"required": True, "type": 'str', "no_log": True},
|
|
|
|
|
"idrac_password": {"required": True, "type": 'str', "no_log": True},
|
|
|
|
|
"idrac_port": {"required": False, "default": 443, "type": 'int'},
|
|
|
|
|
|
|
|
|
|
"share_name": {"required": True, "type": 'str'},
|
|
|
|
|
"share_user": {"required": False, "type": 'str'},
|
|
|
|
|
"share_pwd": {"required": False, "type": 'str', "no_log": True},
|
|
|
|
|
"share_password": {"required": False, "type": 'str', "no_log": True},
|
|
|
|
|
"share_mnt": {"required": True, "type": 'str'},
|
|
|
|
|
|
|
|
|
|
"catalog_file_name": {"required": False, "type": 'str', "default": "Catalog.xml"},
|
|
|
|
|