david_igou.routeros_configuration._wait_api role – Wait for a RouterOS device to come back after a reboot.
Note
This role is part of the david_igou.routeros_configuration collection (version 0.0.8-alpha).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it use: ansible-galaxy collection install david_igou.routeros_configuration.
To use it in a playbook, specify: david_igou.routeros_configuration._wait_api.
Entry point main – Wait for a RouterOS device to come back after a reboot.
Synopsis
Internal helper role. The reboot, reset, restore and upgrade roles include it after issuing a reboot-class command instead of carrying their own copies of the wait logic.
Waits for the API TCP port to open, then retries a real API call until the login subsystem answers (the port accepts TCP before logins work).
Parameters
Parameter |
Comments |
|---|---|
Seconds to hold off before the first port probe, giving the device time to actually drop the port after the reboot command. Default: |
|
Seconds between login probes. Together with Default: |
|
How many times to retry the post-port login probe. Default: |
|
Seconds to wait for the API TCP port to open. Callers pass their role’s Default: |
|
API hostname/IP of the device. Default: |
|
API password. Secret — supply via vault/group_vars. Intentionally has no default so a missing value fails loudly rather than attempting an empty-password login. The module marks it no_log. |
|
TCP port; empty lets the module choose from tls. Default: |
|
Use TLS (api-ssl). Prefer true in production. Choices:
|
|
API username. Default: |
|
Validate the device TLS certificate. Choices:
|