ieisystem / ieisystem.inmanage / 1.1.1 / module / edit_ldisk Set logical disk | "added in version" 1.0.0 of ieisystem.inmanage" Authors: WangBaoshan (@ieisystem)ieisystem.inmanage.edit_ldisk (1.1.1) — module
Install with ansible-galaxy collection install ieisystem.inmanage:==1.1.1
collections: - name: ieisystem.inmanage version: 1.1.1
Set logical disk on ieisystem Server.
- name: Edit ldisk test hosts: inmanage connection: local gather_facts: no vars: inmanage: host: "{{ ansible_ssh_host }}" username: "{{ username }}" password: "{{ password }}" tasks: - name: "Show ldisk information" ieisystem.inmanage.edit_ldisk: info: "show" provider: "{{ inmanage }}" - name: "Edit ldisk" ieisystem.inmanage.edit_ldisk: ctrl_id: 0 ldisk_id: 1 option: "LOC" provider: "{{ inmanage }}"
host: description: - Specifies the DNS host name or address for connecting to the remote device over the specified transport. The value of host is used as the destination address for the transport. type: str info: choices: - show description: - Show controller and ldisk info. type: str option: choices: - LOC - STL - FI - SFI - SI - DEL description: - Set operation options for a logical disk. - LOC is Locate Logical Drive, STL is Stop Locate LogicalDrive. - FI is Fast Initialization, SFI is Slow/Full Initialization. - SI is Stop Initialization, DEL is Delete LogicalDrive. - Required when I(Info=None). type: str ctrl_id: description: - Raid controller ID. - Required when I(Info=None). type: int duration: description: - Duration range is 1-255, physical drive under PMC raid controller. - Required when I(option=LOC). - Only the M6 model supports this parameter. type: int ldisk_id: description: - Logical disk ID. - Required when I(Info=None). type: int password: description: - Specifies the password to use to authenticate the connection to the remote device. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_PASSWORD) will be used instead. type: str provider: description: - A dict object containing connection details. suboptions: host: description: - Specifies the DNS host name or address for connecting to the remote device over the specified transport. The value of host is used as the destination address for the transport. type: str password: description: - Specifies the password to use to authenticate the connection to the remote device. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_PASSWORD) will be used instead. type: str username: description: - Configures the username to use to authenticate the connection to the remote device. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_USERNAME) will be used instead. type: str type: dict username: description: - Configures the username to use to authenticate the connection to the remote device. If the value is not specified in the task, the value of environment variable C(ANSIBLE_NET_USERNAME) will be used instead. type: str
changed: description: Check to see if a change was made on the device. returned: always type: bool message: description: Messages returned after module execution. returned: always type: str state: description: Status after module execution. returned: always type: str