create extra role for wakeup configuration

This commit is contained in:
Alexander Grothe
2017-11-20 09:45:15 +01:00
parent 052b46ee34
commit 9060429ba6
10 changed files with 476 additions and 379 deletions

View File

@@ -4,4 +4,5 @@
- name: apt | install yavdr-hardware-irmp if connected
apt:
name: yavdr-hardware-irmp
state: present
when: '"1209:4444" in usb'

View File

@@ -11,5 +11,6 @@
- name: apt | install vdr-plugin-satip if a Sat>IP server has been detected
apt:
name: vdr-plugin-satip
state: present
when: satip_devices
notify: [ 'Restart VDR' ]

View File

@@ -0,0 +1,3 @@
---
# file roles/wakeup/defaults/main.yml
wakeup_method: "acpiwakeup"

View File

@@ -0,0 +1,15 @@
---
# file roles/wakeup/tasks/main.yml
- name: install and configure vdr-addon-acpiwakeup
block:
- apt:
name: vdr-addon-acpiwakeup
state: present
- lineinfile:
path: /etc/vdr/vdr-addon-acpiwakeup.conf
regexp: '^ACPI_ENABLED='
line: 'ACPI_ENABLED=true'
when: wakeup_method == "acpiwakeup"

View File

@@ -7,6 +7,3 @@
- import_tasks: configure_system.yml
- import_tasks: create_directories.yml
tags: [install]
- import_tasks: gather_facts.yml
tags: [install, autodetect]