khuedoan-homelab/metal/roles/pxe-boot/tasks/wake.yml

9 lines
229 B
YAML

- name: Send magic Wake-on-LAN packet
community.general.wakeonlan:
mac: "{{ hostvars[inventory_hostname]['mac'] }}"
delegate_to: localhost
- name: Wait for the servers to comes up
wait_for_connection:
timeout: 600