Debian Codegraph @

ansible_collections/community/windows/plugins/modules/win_net_adapter_feature.py

raw
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3
4 # Copyright: (c) 2020, ライトウェルの人 <[email protected]>
5 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
6
7
8 DOCUMENTATION = r'''
9 ---
10 module: win_net_adapter_feature
11 version_added: 1.2.0
12 short_description: Enable or disable certain network adapters.
13 description:
14 - Enable or disable some network components of a certain network adapter or all the network adapters.
15 options:
16 interface:
17 description:
18 - Name of Network Adapter Interface. For example, C(Ethernet0) or C(*).
19 type: list
20 elements: str
21 required: yes
22 state:
23 description:
24 - Specify the state of ms_tcpip6 of interfaces.
25 type: str
26 choices: [ enabled, disabled ]
27 default: enabled
28 required: no
29 component_id:
30 description:
31 - Specify the below component_id of network adapters.
32 - component_id (DisplayName)
33 - C(ms_implat) (Microsoft Network Adapter Multiplexor Protocol)
34 - C(ms_lltdio) (Link-Layer Topology Discovery Mapper I/O Driver)
35 - C(ms_tcpip6) (Internet Protocol Version 6 (TCP/IPv6))
36 - C(ms_tcpip) (Internet Protocol Version 4 (TCP/IPv4))
37 - C(ms_lldp) (Microsoft LLDP Protocol Driver)
38 - C(ms_rspndr) (Link-Layer Topology Discovery Responder)
39 - C(ms_msclient) (Client for Microsoft Networks)
40 - C(ms_pacer) (QoS Packet Scheduler)
41 - If you'd like to set custom adapters like 'Juniper Network Service', get the I(component_id) by running the C(Get-NetAdapterBinding) cmdlet.
42 type: list
43 elements: str
44 required: yes
45
46 author:
47 - ライトウェルの人 (@jirolin)
48 '''
49
50
51 EXAMPLES = r'''
52 - name: enable multiple interfaces of multiple interfaces
53 community.windows.win_net_adapter_feature:
54 interface:
55 - 'Ethernet0'
56 - 'Ethernet1'
57 state: enabled
58 component_id:
59 - ms_tcpip6
60 - ms_server
61
62 - name: Enable ms_tcpip6 of all the Interface
63 community.windows.win_net_adapter_feature:
64 interface: '*'
65 state: enabled
66 component_id:
67 - ms_tcpip6
68 '''