New in version 2.4.
parameter | required | default | choices | comments |
---|---|---|---|---|
profiles | no | [u'Domain', u'Private', u'Public'] |
| Specify one or more profiles to change. |
state | no |
| Set state of firewall for given profile. |
- 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
Common return values are documented here Return Values, the following are the fields unique to this module:
name | description | returned | type | sample |
---|---|---|---|---|
state | desired state of the given firewall profile(s) | always | list | enabled |
enabled | current firewall status for chosen profile (after any potential change) | always | bool | True |
profiles | chosen profile | always | string | Domain |
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.
© 2012–2017 Michael DeHaan
© 2017 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/win_firewall_module.html