Relative Content

Tag Archive for ansiblehandlerreboot

Ansible Handler for reboot

I want to create a handler to reboot a device only when changes are detected. It doesn’t need to be a handler if its not best practice, but I want to have something to reboot that device automatically. With the .yaml below, every time on run this it reboots all the devices I have listed in my inventory [raspi5].

Ansible Handler for reboot

I want to create a handler to reboot a device only when changes are detected. It doesn’t need to be a handler if its not best practice, but I want to have something to reboot that device automatically. With the .yaml below, every time on run this it reboots all the devices I have listed in my inventory [raspi5].