Add template for vdr-addon-acpiwakeup.conf

This commit is contained in:
Alexander Grothe
2017-11-20 11:54:11 +01:00
parent 74159df8ac
commit 115bfe66c9
3 changed files with 54 additions and 20 deletions

View File

@@ -2,14 +2,12 @@
# 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="yes"'
apt:
name: vdr-addon-acpiwakeup
state: present
when: wakeup_method == "acpiwakeup"
- name: expand template for /etc/vdr/vdr-addon-acpiwakeup.conf
template:
src: roles/wakeup/vdr-addon-acpiwakeup.conf.j2
dest: /etc/vdr/vdr-addon-acpiwakeup.conf