community.windows.win_net_adapter_feature – Enable or disable certain network adapters.
community.windows.win_net_adapter_feature – Enable or disable certain network adapters.
Note
This plugin is part of the community.windows collection (version 1.2.0).
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 | Choices/Defaults | Comments |
---|---|---|
component_id list / elements=string / required |
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 | |
interface list / elements=string / required |
Name of Network Adapter Interface. For example, | |
state string |
|
Specify the state of ms_tcpip6 of interfaces. |
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)
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.11/collections/community/windows/win_net_adapter_feature_module.html