19 lines
471 B
YAML
19 lines
471 B
YAML
|
---
|
||
|
# tasks file for wakeonlan
|
||
|
|
||
|
- name: Install and configure wakeonlan
|
||
|
when:
|
||
|
- "wakeonlan_enabled is true"
|
||
|
block:
|
||
|
- name: Gather package facts
|
||
|
package_facts:
|
||
|
manager: auto
|
||
|
|
||
|
- name: Install yggdrasil if not present
|
||
|
when: "'ethtool' not in ansible_facts.packages"
|
||
|
block:
|
||
|
- include_tasks: "install_{{ ansible_os_family }}.yml"
|
||
|
|
||
|
- include_tasks: "install_{{ ansible_service_mgr }}_service.yml"
|
||
|
ignore_errors: true
|