ieisystem / ieisystem.inmanage / 1.1.1 / module / edit_network_link Set network link | "added in version" 1.0.0 of ieisystem.inmanage" Authors: WangBaoshan (@ieisystem)ieisystem.inmanage.edit_network_link (1.1.1) — module
Install with ansible-galaxy collection install ieisystem.inmanage:==1.1.1
collections: - name: ieisystem.inmanage version: 1.1.1
Set network link on ieisystem Server.
- name: Link test hosts: inmanage connection: local gather_facts: no vars: inmanage: host: "{{ ansible_ssh_host }}" username: "{{ username }}" password: "{{ password }}" tasks: - name: "Set network link" ieisystem.inmanage.edit_network_link: interface: "dedicated" auto_nego: "enable" provider: "{{ inmanage }}" - name: "Set network link" ieisystem.inmanage.edit_network_link: interface: "dedicated" auto_nego: "disable" link_speed: 100 duplex_mode: "FULL" 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 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 auto_nego: choices: - enable - disable description: - This option allows the device to perform auto-configuration. - To achieve the best mode of operation (speed and duplex) on the link. type: str interface: choices: - shared - dedicated - both description: - Interface name. required: true type: str link_speed: choices: - 10 - 100 description: - Link speed will list all the supported capabilities of the network interface. It can be 10/100 Mbps. - Required when I(auto_nego=disable). type: int duplex_mode: choices: - HALF - FULL description: - Select any one of the following Duplex Mode. - Required when I(auto_nego=disable). 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