@@ -4117,7 +4117,7 @@ with:
41174117 chain: value
41184118` ` `
41194119
4120- # ## `network.firewall.iptables.counter_assert `
4120+ # ## `network.firewall.iptables.counter_check `
41214121
41224122Assert iptables chain packet counters are above a threshold.
41234123
@@ -4145,7 +4145,7 @@ Result fields:
41454145Example :
41464146
41474147` ` ` yaml
4148- use: network.firewall.iptables.counter_assert
4148+ use: network.firewall.iptables.counter_check
41494149with:
41504150 chain: value
41514151` ` `
@@ -4185,40 +4185,6 @@ with:
41854185 rule: allow
41864186` ` `
41874187
4188- # ## `network.firewall.iptables.exists_assert`
4189-
4190- Assert an iptables rule exists.
4191-
4192- - Remote session : ` true`
4193- - Dry-run support : ` true`
4194- - Check mode support : ` true`
4195-
4196- | Parameter | Required | Type | Default | Description |
4197- |---|---:|---|---|---|
4198- | `chain` | yes | `string` | | Firewall chain name. |
4199- | `rule` | yes | `string` | | Firewall action such as allow, deny, reject or limit. |
4200- | `table` | no | `string` | | Routing table name or number. |
4201- | `ipv6` | no | `boolean` | `False` | Use IPv6 command variant when supported. |
4202- | `sudo` | no | `boolean` | `False` | Run the remote operation through sudo -n when supported. |
4203-
4204- Result fields :
4205-
4206- - `changed` : Whether the plugin changed the target or controller state.
4207- - `message` : Human-readable result message.
4208- - `rc` : Process or command return code when applicable.
4209- - `stdout` : Captured standard output when applicable.
4210- - `stderr` : Captured standard error when applicable.
4211- - `data` : Plugin-specific structured result data.
4212-
4213- Example :
4214-
4215- ` ` ` yaml
4216- use: network.firewall.iptables.exists_assert
4217- with:
4218- chain: value
4219- rule: allow
4220- ` ` `
4221-
42224188# ## `network.firewall.iptables.list`
42234189
42244190List iptables or ip6tables rules for a table or chain.
@@ -4360,6 +4326,40 @@ with:
43604326 rule: allow
43614327` ` `
43624328
4329+ # ## `network.firewall.iptables.rule_check`
4330+
4331+ Assert an iptables rule exists.
4332+
4333+ - Remote session : ` true`
4334+ - Dry-run support : ` true`
4335+ - Check mode support : ` true`
4336+
4337+ | Parameter | Required | Type | Default | Description |
4338+ |---|---:|---|---|---|
4339+ | `chain` | yes | `string` | | Firewall chain name. |
4340+ | `rule` | yes | `string` | | Firewall action such as allow, deny, reject or limit. |
4341+ | `table` | no | `string` | | Routing table name or number. |
4342+ | `ipv6` | no | `boolean` | `False` | Use IPv6 command variant when supported. |
4343+ | `sudo` | no | `boolean` | `False` | Run the remote operation through sudo -n when supported. |
4344+
4345+ Result fields :
4346+
4347+ - `changed` : Whether the plugin changed the target or controller state.
4348+ - `message` : Human-readable result message.
4349+ - `rc` : Process or command return code when applicable.
4350+ - `stdout` : Captured standard output when applicable.
4351+ - `stderr` : Captured standard error when applicable.
4352+ - `data` : Plugin-specific structured result data.
4353+
4354+ Example :
4355+
4356+ ` ` ` yaml
4357+ use: network.firewall.iptables.rule_check
4358+ with:
4359+ chain: value
4360+ rule: allow
4361+ ` ` `
4362+
43634363# ## `network.firewall.iptables.save`
43644364
43654365Save current iptables or ip6tables rules to a persistent file.
@@ -4527,7 +4527,7 @@ with:
45274527 file: /etc/sysctl.d/99-automax.conf
45284528` ` `
45294529
4530- # ## `network.firewall.nftables.ruleset_assert `
4530+ # ## `network.firewall.nftables.ruleset_check `
45314531
45324532Assert the active nftables ruleset contains a fragment.
45334533
@@ -4552,7 +4552,7 @@ Result fields:
45524552Example :
45534553
45544554` ` ` yaml
4555- use: network.firewall.nftables.ruleset_assert
4555+ use: network.firewall.nftables.ruleset_check
45564556with:
45574557 fragment: value
45584558` ` `
0 commit comments