create extra role for wakeup configuration
This commit is contained in:
@@ -4,4 +4,5 @@
|
||||
- name: apt | install yavdr-hardware-irmp if connected
|
||||
apt:
|
||||
name: yavdr-hardware-irmp
|
||||
state: present
|
||||
when: '"1209:4444" in usb'
|
||||
|
||||
@@ -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' ]
|
||||
|
||||
3
roles/wakeup/defaults/main.yml
Normal file
3
roles/wakeup/defaults/main.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
# file roles/wakeup/defaults/main.yml
|
||||
wakeup_method: "acpiwakeup"
|
||||
15
roles/wakeup/tasks/main.yml
Normal file
15
roles/wakeup/tasks/main.yml
Normal 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"
|
||||
@@ -7,6 +7,3 @@
|
||||
- import_tasks: configure_system.yml
|
||||
- import_tasks: create_directories.yml
|
||||
tags: [install]
|
||||
|
||||
- import_tasks: gather_facts.yml
|
||||
tags: [install, autodetect]
|
||||
|
||||
Reference in New Issue
Block a user