community.windows.win_net_adapter_feature – Enable or disable certain network adapters.
Note
This plugin is part of the community.windows collection (version 1.8.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.windows
.
To use it in a playbook, specify: community.windows.win_net_adapter_feature
.
New in version 1.2.0: of community.windows
Synopsis
Enable or disable some network components of a certain network adapter or all the network adapters.
Parameters
Parameter |
Comments |
---|---|
Specify the below component_id of network adapters. component_id (DisplayName)
If you’d like to set custom adapters like ‘Juniper Network Service’, get the component_id by running the |
|
Name of Network Adapter Interface. For example, |
|
Specify the state of ms_tcpip6 of interfaces. Choices:
|
Examples
- name: enable multiple interfaces of multiple interfaces
community.windows.win_net_adapter_feature:
interface:
- 'Ethernet0'
- 'Ethernet1'
state: enabled
component_id:
- ms_tcpip6
- ms_server
- name: Enable ms_tcpip6 of all the Interface
community.windows.win_net_adapter_feature:
interface: '*'
state: enabled
component_id:
- ms_tcpip6
Authors
ライトウェルの人 (@jirolin)