server_name isn't defined and sometimes ansible_ssh_host isn't either
As long as the reboot command didn't fail, it was successful, instead look to see if a change was reported