2019-04-29 21:29:21 +02:00
|
|
|
- name: Scan new devices.
|
|
|
|
aix_devices:
|
|
|
|
device: all
|
|
|
|
state: present
|
2019-02-04 03:49:25 +01:00
|
|
|
|
2019-04-29 21:29:21 +02:00
|
|
|
- name: Scan new virtual devices (vio0).
|
|
|
|
aix_devices:
|
|
|
|
device: vio0
|
|
|
|
state: present
|
2019-02-04 03:49:25 +01:00
|
|
|
|
2019-04-29 21:29:21 +02:00
|
|
|
- name: Removing IP alias to en0
|
|
|
|
aix_devices:
|
|
|
|
device: en0
|
|
|
|
attributes:
|
|
|
|
delalias4: 10.0.0.100,255.255.255.0
|
2019-02-04 03:49:25 +01:00
|
|
|
|
2019-04-29 21:29:21 +02:00
|
|
|
- name: Removes ent2.
|
|
|
|
aix_devices:
|
|
|
|
device: ent2
|
|
|
|
state: absent
|
2019-02-04 03:49:25 +01:00
|
|
|
|
2019-04-29 21:29:21 +02:00
|
|
|
- name: Put device en2 in Defined
|
|
|
|
aix_devices:
|
|
|
|
device: en2
|
|
|
|
state: defined
|
2019-02-04 03:49:25 +01:00
|
|
|
|
2019-04-29 21:29:21 +02:00
|
|
|
- name: Removes ent4 (inexistent).
|
|
|
|
aix_devices:
|
|
|
|
device: ent4
|
|
|
|
state: absent
|
2019-02-04 03:49:25 +01:00
|
|
|
|
2019-04-29 21:29:21 +02:00
|
|
|
- name: Put device en4 in Defined (inexistent)
|
|
|
|
aix_devices:
|
|
|
|
device: en4
|
|
|
|
state: defined
|
2019-02-04 03:49:25 +01:00
|
|
|
|
2019-04-29 21:29:21 +02:00
|
|
|
- name: Put vscsi1 and children devices in Defined state.
|
|
|
|
aix_devices:
|
|
|
|
device: vscsi1
|
|
|
|
recursive: yes
|
|
|
|
state: defined
|
2019-02-04 03:49:25 +01:00
|
|
|
|
2019-04-29 21:29:21 +02:00
|
|
|
- name: Removes vscsi1 and children devices.
|
|
|
|
aix_devices:
|
|
|
|
device: vscsi1
|
|
|
|
recursive: yes
|
|
|
|
state: absent
|
2019-02-04 03:49:25 +01:00
|
|
|
|
2019-04-29 21:29:21 +02:00
|
|
|
- name: Changes en1 mtu to 9000 and disables arp.
|
|
|
|
aix_devices:
|
|
|
|
device: en1
|
|
|
|
attributes:
|
|
|
|
mtu: 900
|
|
|
|
arp: off
|
|
|
|
state: present
|
2019-02-04 03:49:25 +01:00
|
|
|
|
2019-04-29 21:29:21 +02:00
|
|
|
- name: Configure IP, netmask and set en1 up.
|
|
|
|
aix_devices:
|
|
|
|
device: en1
|
|
|
|
attributes:
|
|
|
|
netaddr: 192.168.0.100
|
|
|
|
netmask: 255.255.255.0
|
|
|
|
state: up
|
|
|
|
state: present
|
2019-02-04 03:49:25 +01:00
|
|
|
|
2019-04-29 21:29:21 +02:00
|
|
|
- name: Adding IP alias to en0
|
|
|
|
aix_devices:
|
|
|
|
device: en0
|
|
|
|
attributes:
|
|
|
|
alias4: 10.0.0.100,255.255.255.0
|
|
|
|
state: present
|