homelab/metal/roles/wol-wake/tasks/main.yml

8 lines
235 B
YAML

- name: Send magic packets
community.general.wakeonlan:
mac: "{{ hostvars[inventory_hostname]['mac'] }}"
delegate_to: localhost
- name: Wait for machines to come online with installed OS
wait_for_connection:
timeout: 900