Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/aix_devices/tasks/main.yml

raw
1 ---
2 ####################################################################
3 # WARNING: These are designed specifically for Ansible tests #
4 # and should not be used as examples of how to write Ansible roles #
5 ####################################################################
6
7 # Copyright (c) Ansible Project
8 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
9 # SPDX-License-Identifier: GPL-3.0-or-later
10
11 - name: Scan new devices.
12 aix_devices:
13 device: all
14 state: present
15
16 - name: Scan new virtual devices (vio0).
17 aix_devices:
18 device: vio0
19 state: present
20
21 - name: Removing IP alias to en0
22 aix_devices:
23 device: en0
24 attributes:
25 delalias4: 10.0.0.100,255.255.255.0
26
27 - name: Removes ent2.
28 aix_devices:
29 device: ent2
30 state: absent
31
32 - name: Put device en2 in Defined
33 aix_devices:
34 device: en2
35 state: defined
36
37 - name: Removes ent4 (inexistent).
38 aix_devices:
39 device: ent4
40 state: absent
41
42 - name: Put device en4 in Defined (inexistent)
43 aix_devices:
44 device: en4
45 state: defined
46
47 - name: Put vscsi1 and children devices in Defined state.
48 aix_devices:
49 device: vscsi1
50 recursive: true
51 state: defined
52
53 - name: Removes vscsi1 and children devices.
54 aix_devices:
55 device: vscsi1
56 recursive: true
57 state: absent
58
59 - name: Changes en1 mtu to 9000 and disables arp.
60 aix_devices:
61 device: en1
62 attributes:
63 mtu: 900
64 arp: 'off'
65 state: present
66
67 - name: Configure IP, netmask and set en1 up.
68 aix_devices:
69 device: en1
70 attributes:
71 netaddr: 192.168.0.100
72 netmask: 255.255.255.0
73 state: up
74 state: present
75
76 - name: Adding IP alias to en0
77 aix_devices:
78 device: en0
79 attributes:
80 alias4: 10.0.0.100,255.255.255.0
81 state: present