configurations-ansible/roles/wakeonlan/tasks/main.yml

21 lines
607 B
YAML
Raw Permalink Normal View History

2023-01-05 16:01:31 +01:00
---
# tasks file for wakeonlan
- 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