- name: link test
  hosts: ism
  connection: local
  gather_facts: no
  vars:
    ism:
      host: "{{ ansible_ssh_host }}"
      username: "{{ username }}"
      password: "{{ password }}"

  tasks:

  - name: "Set network link"
    inspur.sm.edit_network_link:
      interface: "dedicated"
      auto_nego: "enable"
      provider: "{{ ism }}"

  - name: "Set network link"
    inspur.sm.edit_network_link:
      interface: "dedicated"
      auto_nego: "disable"
      link_speed: 100
      duplex_mode: "FULL"
      provider: "{{ ism }}"