mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
win_firewall_rule only change arguments passed by user (#54297)
* win_firewall_rule only changes specified arguments defaults are controlled by com object integration test for built in rule * removed ignore psaliases for win_firewall_rule * direction and action are no longer required program and service respect default values documentation updated to reflect that defaults apply to rule creation added test to disable a rule and verify other values have not changed * fixed extra whitespace * Move each description sentance to a new entry
This commit is contained in:
parent
365db9057c
commit
2b049238d6
4 changed files with 103 additions and 112 deletions
|
@ -20,8 +20,8 @@ options:
|
|||
enabled:
|
||||
description:
|
||||
- Whether this firewall rule is enabled or disabled.
|
||||
- Defaults to C(true) when creating a new rule.
|
||||
type: bool
|
||||
default: yes
|
||||
aliases: [ enable ]
|
||||
state:
|
||||
description:
|
||||
|
@ -31,20 +31,20 @@ options:
|
|||
default: present
|
||||
name:
|
||||
description:
|
||||
- The rules name.
|
||||
- The rule's display name.
|
||||
type: str
|
||||
required: yes
|
||||
direction:
|
||||
description:
|
||||
- Whether this rule is for inbound or outbound traffic.
|
||||
- Defaults to C(in) when creating a new rule.
|
||||
type: str
|
||||
required: yes
|
||||
choices: [ in, out ]
|
||||
action:
|
||||
description:
|
||||
- What to do with the items this rule is for.
|
||||
- Defaults to C(allow) when creating a new rule.
|
||||
type: str
|
||||
required: yes
|
||||
choices: [ allow, block ]
|
||||
description:
|
||||
description:
|
||||
|
@ -53,39 +53,50 @@ options:
|
|||
localip:
|
||||
description:
|
||||
- The local ip address this rule applies to.
|
||||
- Set to C(any) to apply to all local ip addresses.
|
||||
- Defaults to C(any) when creating a new rule.
|
||||
type: str
|
||||
default: any
|
||||
remoteip:
|
||||
description:
|
||||
- The remote ip address/range this rule applies to.
|
||||
- Set to C(any) to apply to all remote ip addresses.
|
||||
- Defaults to C(any) when creating a new rule.
|
||||
type: str
|
||||
default: any
|
||||
localport:
|
||||
description:
|
||||
- The local port this rule applies to.
|
||||
- Set to C(any) to apply to all local ports.
|
||||
- Defaults to C(any) when creating a new rule.
|
||||
type: str
|
||||
remoteport:
|
||||
description:
|
||||
- The remote port this rule applies to.
|
||||
- Set to C(any) to apply to all remote ports.
|
||||
- Defaults to C(any) when creating a new rule.
|
||||
type: str
|
||||
program:
|
||||
description:
|
||||
- The program this rule applies to.
|
||||
- Set to C(any) to apply to all programs.
|
||||
- Defaults to C(any) when creating a new rule.
|
||||
type: str
|
||||
service:
|
||||
description:
|
||||
- The service this rule applies to.
|
||||
- Set to C(any) to apply to all services.
|
||||
- Defaults to C(any) when creating a new rule.
|
||||
type: str
|
||||
protocol:
|
||||
description:
|
||||
- The protocol this rule applies to.
|
||||
- Set to C(any) to apply to all services.
|
||||
- Defaults to C(any) when creating a new rule.
|
||||
type: str
|
||||
default: any
|
||||
profiles:
|
||||
description:
|
||||
- The profile this rule applies to.
|
||||
- Defaults to C(domain,private,public) when creating a new rule.
|
||||
type: list
|
||||
default: domain,private,public
|
||||
aliases: [ profile ]
|
||||
force:
|
||||
description:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue