September 2018
Beginner to intermediate
214 pages
5h 53m
English
This is a module that turns on hosts that are currently turned off. This feature requires Ansible to have already collected facts about the hosts and to be storing information about their MAC addresses. The following is a playbook code to show how this module can be used:
- name: start powered off hosts wakeonlan: mac: "{{ hostvars[inventory_hostname].ansible_default_ipv4.macaddress }}" port: 8 delegate_to: localhost
Read now
Unlock full access