blob: 90eaf3656983504c822de89cf0631af6625553a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
- name: ipv6 test
hosts: ism
connection: local
gather_facts: no
vars:
ism:
host: "{{ ansible_ssh_host }}"
username: "{{ username }}"
password: "{{ password }}"
tasks:
- name: "set ipv6 information"
inspur.sm.edit_ipv6:
interface_name: "eth0"
ipv6_status: "disable"
provider: "{{ ism }}"
- name: "set ipv6 information"
inspur.sm.edit_ipv6:
interface_name: "eth0"
ipv6_status: "enable"
ipv6_dhcp_enable: "dhcp"
provider: "{{ ism }}"
- name: "set ipv6 information"
inspur.sm.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: "{{ ism }}"
|