I'm having trouble locating any modules besides rebooting and shutdown for Linux. I'm wondering if anyone has done this?


You could run a shell command through ansible.

- name: suspend "{{ ansible_hostname }}"
  command: systemctl suspend

As for waking them up again: Wake-On-LAN?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.