""" Reboot machines. """ import pyinfra def reboot_machines(): pyinfra.operations.server.reboot( name="Reboot server", _sudo=True, _use_sudo_password=True ) reboot_machines()