wol role – Wake on LAN

Note

This role is part of the ufrmath.computer_labs collection (version 1.0.0).

To install it use: ansible-galaxy collection install git+https://github.com/guillod/computer_labs.

To use it in a playbook, specify: ufrmath.computer_labs.wol.

Entry point main – Wake on LAN

Synopsis

  • BIOS should be configured to allow WOL;

  • MAC addresses have to be present in Ansible cache (consider adding fact_caching with fact_caching_timeout=0 to Ansible configuration);

  • Perform WOL using cached MAC addresses to broadcast;

  • Wait until SSH is ready.

Parameters

Parameter

Comments

broadcast

string

broadcast mask to send wol packets

Default: "255.255.255.255"