win_firewall – Enable or disable the Windows Firewall¶
New in version 2.4.
Synopsis¶
Enable or Disable Windows Firewall profiles.
Requirements¶
The below requirements are needed on the host that executes this module.
This module requires Windows Management Framework 5 or later.
Parameters¶
See Also¶
See also
- win_firewall_rule – Windows firewall automation
The official documentation on the win_firewall_rule module.
Examples¶
- name: Enable firewall for Domain, Public and Private profiles
win_firewall:
state: enabled
profiles:
- Domain
- Private
- Public
tags: enable_firewall
- name: Disable Domain firewall
win_firewall:
state: disabled
profiles:
- Domain
tags: disable_firewall
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Status¶
This module is not guaranteed to have a backwards compatible interface. [preview]
This module is maintained by the Ansible Community. [community]