Categories

Category cover

Automation
155 posts

Category cover

Learning paths
119 posts

Category cover

CISO
22 posts

Category cover

Security
20 posts

Category cover

Notes
19 posts

Category cover

Personal Security
18 posts

Category cover

Infrastructure
12 posts

Category cover

OT/ICS
5 posts

Category cover

Books
3 posts

Category cover

UNetLab
3 posts

Category cover

Write-up
3 posts

Category cover

OSInt
2 posts

Category cover

My life
1 posts

Reboot a device with Ansible and wait for it to come online

Andrea Dainese
April 05, 2025
Post cover

A more complex interactive task than those seen before is rebooting the device and waiting for it to be available again. Although Ansible is

A more complex interactive task than those seen before is rebooting the device and waiting for it to be available again. Although Ansible is not designed specifically for this purpose, it can be useful, for example, in a procedure that updates device firmware.

Let’s analyze the manual procedure:

  • The device must obviously be reachable.
  • The configuration register should be set to 0x2101.
  • The configuration must be saved.

At this point, the reload command can be issued, followed by waiting for it to be reachable again before issuing further commands.

The preliminary tasks, which have already been analyzed before, can be implemented very simply:

Continue reading the post on Patreon .