ieisystem / ieisystem.inmanage / 1.1.1 / module / edit_virtual_media Set virtual media | "added in version" 1.0.0 of ieisystem.inmanage" Authors: WangBaoshan (@ieisystem)ieisystem.inmanage.edit_virtual_media (1.1.1) — module
Install with ansible-galaxy collection install ieisystem.inmanage:==1.1.1
collections: - name: ieisystem.inmanage version: 1.1.1
Set virtual media on ieisystem Server.
- name: Media test hosts: inmanage no_log: true connection: local gather_facts: no vars: inmanage: host: "{{ ansible_ssh_host }}" username: "{{ username }}" password: "{{ password }}" tasks: - name: "Set local media" ieisystem.inmanage.edit_virtual_media: local_media_support: "Enable" provider: "{{ inmanage }}" - name: "Set remote media" ieisystem.inmanage.edit_virtual_media: remote_media_support: "Enable" mount_type: 'CD' same_settings: 0 mount: "Enable" remote_server_address: "100.2.28.203" remote_source_path: "/data/nfs/server/" remote_share_type: "nfs" 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 mount: choices: - Enable - Disable description: - Whether to mount virtual media. - Only the M5 model supports this parameter. 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 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 mount_type: choices: - CD - FD - HD description: - Virtual mount type. - The I(FD) option is not supported in M6. type: str same_settings: choices: - 0 - 1 description: - Same settings with I(CD), 0 is No, 1 is Yes. - Required when I(mount_type=0). type: int remote_password: description: - Remote Password. - Required when I(remote_share_type=cifs). type: str remote_user_name: description: - Remote User Name. - Required when I(remote_share_type=cifs). type: str remote_share_type: choices: - nfs - cifs description: - Share Type of the remote media server either NFS or Samba(CIFS). type: str remote_domain_name: description: - Remote Domain Name, Domain Name field is optional. type: str remote_source_path: description: - Source path to the remote media images.. type: str local_media_support: choices: - Enable - Disable description: - To enable or disable Local Media Support, check or uncheck the checkbox respectively. - Only the M5 model supports this parameter. type: str remote_media_support: choices: - Enable - Disable description: - To enable or disable Remote Media support, check or uncheck the checkbox respectively. type: str remote_server_address: description: - Address of the server where the remote media images are stored. 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