ieisystem.inmanage.edit_ipv6 (1.1.1) — module

Set ipv6 information

| "added in version" 1.0.0 of ieisystem.inmanage"

Authors: WangBaoshan (@ieisystem)

Install collection

Install with ansible-galaxy collection install ieisystem.inmanage:==1.1.1


Add to requirements.yml

  collections:
    - name: ieisystem.inmanage
      version: 1.1.1

Description

Set ipv6 information on ieisystem Server.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Ipv6 test
  hosts: inmanage
  connection: local
  gather_facts: no
  vars:
    inmanage:
      host: "{{ ansible_ssh_host }}"
      username: "{{ username }}"
      password: "{{ password }}"

  tasks:

  - name: "Set ipv6 information"
    ieisystem.inmanage.edit_ipv6:
      interface_name: "eth0"
      ipv6_status: "disable"
      provider: "{{ inmanage }}"

  - name: "Set ipv6 information"
    ieisystem.inmanage.edit_ipv6:
      interface_name: "eth0"
      ipv6_status: "enable"
      ipv6_dhcp_enable: "dhcp"
      provider: "{{ inmanage }}"

  - name: "Set ipv6 information"
    ieisystem.inmanage.edit_ipv6:
      interface_name: "eth0"
      ipv6_status: "enable"
      ipv6_dhcp_enable: "static"
      ipv6_address: "::ffff:100:2:36:10"
      ipv6_index: 12
      ipv6_prefix: 16
      ipv6_gateway: "::"
      provider: "{{ inmanage }}"

Inputs

    
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

ipv6_index:
    description:
    - Ipv6 index(0-15).
    - Required when I(ipv6_dhcp_enable=static).
    type: int

ipv6_prefix:
    description:
    - The subnet prefix length for the IPv6 settings(0-128).
    - Required when I(ipv6_dhcp_enable=static).
    type: int

ipv6_status:
    choices:
    - enable
    - disable
    description:
    - Enable or disable IPV6.
    type: str

ipv6_address:
    description:
    - If DHCP is disabled, specify a static IPv6 address to be configured for the selected
      interface.
    - Required when I(ipv6_dhcp_enable=static).
    type: str

ipv6_gateway:
    description:
    - If DHCP is disabled, specify a static Default Gateway to be configured for the selected
      interface.
    - Required when I(ipv6_dhcp_enable=static).
    type: str

interface_name:
    choices:
    - eth0
    - eth1
    - bond0
    description:
    - Set interface name. Select the LAN interface to be configured.
    required: true
    type: str

ipv6_dhcp_enable:
    choices:
    - dhcp
    - static
    description:
    - Enable 'Enable DHCP' to dynamically configure IPv6 address using Dynamic Host Configuration
      Protocol (DHCP).
    type: str

Outputs

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