2023-01-05 16:01:31 +01:00
|
|
|
---
|
|
|
|
# tasks file for wakeonlan
|
|
|
|
|
2023-01-13 18:01:41 +01:00
|
|
|
- ansible.builtin.debug:
|
|
|
|
msg: "ENABLED = {{ wakeonlan_enabled }}; wakeonlan role; install and configure wakeonlan on target; REQUIRES BIOS CONFIGURATION ON TARGET itself"
|
|
|
|
|
|
|
|
- when:
|
2023-01-05 16:01:31 +01:00
|
|
|
- "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
|