@@ -613,40 +613,6 @@ with:
613613 path: /tmp/automax-demo
614614` ` `
615615
616- # ## `assert.tcp`
617-
618- Assert that a TCP host/port is reachable from the controller.
619-
620- - Remote session : ` false`
621- - Dry-run support : ` true`
622- - Check mode support : ` false`
623-
624- | Parameter | Required | Type | Default | Description |
625- |---|---:|---|---|---|
626- | `host` | yes | `string` | | Hostname or IP address to check from the controller. |
627- | `port` | yes | `integer` | | TCP port number. |
628- | `connect_timeout` | no | `number` | `3` | Per-attempt TCP connect timeout in seconds. |
629-
630- Result fields :
631-
632- - `changed` : Whether the plugin changed the target or controller state.
633- - `message` : Human-readable result message.
634- - `rc` : Process or command return code when applicable.
635- - `stdout` : Captured standard output when applicable.
636- - `stderr` : Captured standard error when applicable.
637- - `data` : Plugin-specific structured result data.
638- - `data.host` : Checked host.
639- - `data.port` : Checked TCP port.
640-
641- Example :
642-
643- ` ` ` yaml
644- use: assert.tcp
645- with:
646- host: 127.0.0.1
647- port: 22
648- ` ` `
649-
650616# # auditd
651617
652618# ## `auditd.backlog_assert`
@@ -5862,6 +5828,8 @@ Result fields:
58625828- `stdout` : Captured standard output when applicable.
58635829- `stderr` : Captured standard error when applicable.
58645830- `data` : Plugin-specific structured result data.
5831+ - `data.host` : Checked host.
5832+ - `data.port` : Checked TCP port.
58655833
58665834Example :
58675835
@@ -5872,25 +5840,57 @@ with:
58725840 port: 22
58735841` ` `
58745842
5875- # ## `network.dns `
5843+ # ## `network.connectivity.port_wait `
58765844
5877- Configure DNS resolver settings using the backend-aware resolver implementation .
5845+ Wait for TCP or UDP connectivity from the remote target .
58785846
58795847- Remote session : ` true`
58805848- Dry-run support : ` true`
5881- - Check mode support : ` false`
5849+ - Check mode support : ` true`
5850+
5851+ | Parameter | Required | Type | Default | Description |
5852+ |---|---:|---|---|---|
5853+ | `host` | yes | `string` | | Hostname or IP address to check from the controller. |
5854+ | `port` | yes | `integer` | | TCP port number. |
5855+ | `protocol` | no | `string` | `tcp` | Network protocol such as tcp or udp. |
5856+ | `timeout` | no | `number` | | Operation timeout in seconds. |
5857+ | `interval` | no | `number` | `2` | Polling interval in seconds. |
5858+ | `retries` | no | `integer` | `12` | Maximum polling attempts before a wait operation fails. |
5859+ | `sudo` | no | `boolean` | `False` | Run the remote operation through sudo -n when supported. |
5860+
5861+ Result fields :
5862+
5863+ - `changed` : Whether the plugin changed the target or controller state.
5864+ - `message` : Human-readable result message.
5865+ - `rc` : Process or command return code when applicable.
5866+ - `stdout` : Captured standard output when applicable.
5867+ - `stderr` : Captured standard error when applicable.
5868+ - `data` : Plugin-specific structured result data.
5869+ - `data.host` : Checked host.
5870+ - `data.port` : Checked TCP port.
5871+
5872+ Example :
5873+
5874+ ` ` ` yaml
5875+ use: network.connectivity.port_wait
5876+ with:
5877+ host: 127.0.0.1
5878+ port: 22
5879+ ` ` `
5880+
5881+ # ## `network.dns.check`
5882+
5883+ Assert resolver nameserver, search and option entries from /etc/resolv.conf.
5884+
5885+ - Remote session : ` true`
5886+ - Dry-run support : ` true`
5887+ - Check mode support : ` true`
58825888
58835889| Parameter | Required | Type | Default | Description |
58845890|---|---:|---|---|---|
5885- | `backend` | no | `string` | | Operation backend such as auto, runtime, networkmanager, systemd-networkd, ifcfg, plain-file, systemd-resolved or resolvconf. |
58865891| `nameservers` | no | `list` | | Resolver nameserver addresses. |
58875892| `search` | no | `list` | | Resolver search domains. |
58885893| `options` | no | `list` | | Resolver options. |
5889- | `path` | no | `path` | | Remote or local path, depending on the plugin. |
5890- | `nm_connection` | no | `string` | | NetworkManager connection profile used for persistent DNS changes. |
5891- | `force` | no | `boolean` | `False` | Force the operation when supported. |
5892- | `backup` | no | `boolean` | `False` | Create a backup before modifying an existing file. |
5893- | `backup_suffix` | no | `string` | `.bak` | Suffix appended to the original path when backup is enabled. |
58945894| `sudo` | no | `boolean` | `False` | Run the remote operation through sudo -n when supported. |
58955895
58965896Result fields :
@@ -5905,26 +5905,33 @@ Result fields:
59055905Example :
59065906
59075907` ` ` yaml
5908- use: network.dns
5908+ use: network.dns.check
59095909with:
5910- backend: auto
59115910 nameservers:
59125911 - 192.0.2.53
5912+ search:
5913+ - example.com
59135914` ` `
59145915
5915- # ## `network.dns_assert `
5916+ # ## `network.dns.config `
59165917
5917- Assert resolver nameserver, search and option entries from /etc/resolv.conf .
5918+ Configure DNS resolver settings using the backend-aware resolver implementation .
59185919
59195920- Remote session : ` true`
59205921- Dry-run support : ` true`
5921- - Check mode support : ` true `
5922+ - Check mode support : ` false `
59225923
59235924| Parameter | Required | Type | Default | Description |
59245925|---|---:|---|---|---|
5926+ | `backend` | no | `string` | | Operation backend such as auto, runtime, networkmanager, systemd-networkd, ifcfg, plain-file, systemd-resolved or resolvconf. |
59255927| `nameservers` | no | `list` | | Resolver nameserver addresses. |
59265928| `search` | no | `list` | | Resolver search domains. |
59275929| `options` | no | `list` | | Resolver options. |
5930+ | `path` | no | `path` | | Remote or local path, depending on the plugin. |
5931+ | `nm_connection` | no | `string` | | NetworkManager connection profile used for persistent DNS changes. |
5932+ | `force` | no | `boolean` | `False` | Force the operation when supported. |
5933+ | `backup` | no | `boolean` | `False` | Create a backup before modifying an existing file. |
5934+ | `backup_suffix` | no | `string` | `.bak` | Suffix appended to the original path when backup is enabled. |
59285935| `sudo` | no | `boolean` | `False` | Run the remote operation through sudo -n when supported. |
59295936
59305937Result fields :
@@ -5939,15 +5946,14 @@ Result fields:
59395946Example :
59405947
59415948` ` ` yaml
5942- use: network.dns_assert
5949+ use: network.dns.config
59435950with:
5951+ backend: auto
59445952 nameservers:
59455953 - 192.0.2.53
5946- search:
5947- - example.com
59485954` ` `
59495955
5950- # ## `network.dns_facts `
5956+ # ## `network.dns.facts `
59515957
59525958Detect the active DNS resolver backend without changing resolver configuration.
59535959
@@ -5971,7 +5977,7 @@ Result fields:
59715977Example :
59725978
59735979` ` ` yaml
5974- use: network.dns_facts
5980+ use: network.dns.facts
59755981with:
59765982 sudo: true
59775983` ` `
@@ -11607,74 +11613,3 @@ use: user.unlock
1160711613with:
1160811614 name: nginx
1160911615` ` `
11610-
11611- # # wait
11612-
11613- # ## `wait.process`
11614-
11615- Wait until a remote process condition is true.
11616-
11617- - Remote session : ` true`
11618- - Dry-run support : ` true`
11619- - Check mode support : ` false`
11620-
11621- | Parameter | Required | Type | Default | Description |
11622- |---|---:|---|---|---|
11623- | `pattern` | yes | `string` | | Regex, process pattern or search pattern. |
11624- | `state` | no | `string` | | Desired state such as present, absent, started or stopped. |
11625- | `timeout` | no | `number` | | Operation timeout in seconds. |
11626- | `interval` | no | `number` | `2` | Polling interval in seconds. |
11627- | `sudo` | no | `boolean` | `False` | Run the remote operation through sudo -n when supported. |
11628-
11629- Result fields :
11630-
11631- - `changed` : Whether the plugin changed the target or controller state.
11632- - `message` : Human-readable result message.
11633- - `rc` : Process or command return code when applicable.
11634- - `stdout` : Captured standard output when applicable.
11635- - `stderr` : Captured standard error when applicable.
11636- - `data` : Plugin-specific structured result data.
11637-
11638- Example :
11639-
11640- ` ` ` yaml
11641- use: wait.process
11642- with:
11643- pattern: KEY=.*
11644- ` ` `
11645-
11646- # ## `wait.tcp`
11647-
11648- Wait until a TCP host/port is reachable from the controller.
11649-
11650- - Remote session : ` false`
11651- - Dry-run support : ` true`
11652- - Check mode support : ` false`
11653-
11654- | Parameter | Required | Type | Default | Description |
11655- |---|---:|---|---|---|
11656- | `host` | yes | `string` | | Hostname or IP address to check from the controller. |
11657- | `port` | yes | `integer` | | TCP port number. |
11658- | `timeout` | no | `number` | | Operation timeout in seconds. |
11659- | `interval` | no | `number` | `2` | Polling interval in seconds. |
11660- | `connect_timeout` | no | `number` | `3` | Per-attempt TCP connect timeout in seconds. |
11661-
11662- Result fields :
11663-
11664- - `changed` : Whether the plugin changed the target or controller state.
11665- - `message` : Human-readable result message.
11666- - `rc` : Process or command return code when applicable.
11667- - `stdout` : Captured standard output when applicable.
11668- - `stderr` : Captured standard error when applicable.
11669- - `data` : Plugin-specific structured result data.
11670- - `data.host` : Checked host.
11671- - `data.port` : Checked TCP port.
11672-
11673- Example :
11674-
11675- ` ` ` yaml
11676- use: wait.tcp
11677- with:
11678- host: 127.0.0.1
11679- port: 22
11680- ` ` `
0 commit comments