community / community.network / 5.0.2 / module / dladm_iptun Manage IP tunnel interfaces on Solaris/illumos systems. Authors: Adam Števko (@xen0l)community.network.dladm_iptun (5.0.2) — module
Install with ansible-galaxy collection install community.network:==5.0.2
collections: - name: community.network version: 5.0.2
Manage IP tunnel interfaces on Solaris/illumos systems.
- name: Create IPv4 tunnel interface 'iptun0' community.network.dladm_iptun: name=iptun0 local_address=192.0.2.23 remote_address=203.0.113.10 state=present
- name: Change IPv4 tunnel remote address community.network.dladm_iptun: name=iptun0 type=ipv4 local_address=192.0.2.23 remote_address=203.0.113.11
- name: Create IPv6 tunnel interface 'tun0' community.network.dladm_iptun: name=tun0 type=ipv6 local_address=192.0.2.23 remote_address=203.0.113.42
- name: Remove 'iptun0' tunnel interface community.network.dladm_iptun: name=iptun0 state=absent
name: description: - IP tunnel interface name. required: true type: aliases: - tunnel_type choices: - ipv4 - ipv6 - 6to4 default: ipv4 description: - Specifies the type of tunnel to be created. required: false state: choices: - present - absent default: present description: - Create or delete Solaris/illumos VNIC. required: false temporary: default: false description: - Specifies that the IP tunnel interface is temporary. Temporary IP tunnel interfaces do not persist across reboots. required: false type: bool local_address: aliases: - local description: - Literal IP address or hostname corresponding to the tunnel source. required: false remote_address: aliases: - remote description: - Literal IP address or hostname corresponding to the tunnel destination. required: false
local_address: description: local IP address returned: always sample: 1.1.1.1/32 type: str name: description: tunnel interface name returned: always sample: iptun0 type: str remote_address: description: remote IP address returned: always sample: 2.2.2.2/32 type: str state: description: state of the target returned: always sample: present type: str temporary: description: specifies if operation will persist across reboots returned: always sample: true type: bool type: description: tunnel type returned: always sample: ipv4 type: str