Enable or disable the Windows Firewall
- Enable or Disable Windows Firewall profiles.
The below requirements are needed on the host that executes this module.
- This module requires Windows Management Framework 5 or later.
.. seealso:: :ref:`community.windows.win_firewall_rule_module` The official documentation on the **community.windows.win_firewall_rule** module.
- name: Enable firewall for Domain, Public and Private profiles
community.windows.win_firewall:
state: enabled
profiles:
- Domain
- Private
- Public
tags: enable_firewall
- name: Disable Domain firewall
community.windows.win_firewall:
state: disabled
profiles:
- Domain
tags: disable_firewall
- name: Enable firewall for Domain profile and block outbound connections
community.windows.win_firewall:
profiles: Domain
state: enabled
outbound_action: block
tags: block_connection
Common return values are documented here, the following are the fields unique to this module:
- Michael Eaton (@michaeldeaton)