create extra role for wakeup configuration
This commit is contained in:
parent
052b46ee34
commit
9060429ba6
795
Manual.html
795
Manual.html
File diff suppressed because it is too large
Load Diff
33
Manual.org
33
Manual.org
@ -189,6 +189,7 @@ The ~yavdr07.yml~ playbook sets up a fully-featured yaVDR installation:
|
|||||||
- kodi
|
- kodi
|
||||||
- dvd # set up packages and a udev rule to allow kodi and other players
|
- dvd # set up packages and a udev rule to allow kodi and other players
|
||||||
# to play and eject optical media
|
# to play and eject optical media
|
||||||
|
- wakeup # set up wakeup methods for rtc etc.
|
||||||
- grub-config # configure grub
|
- grub-config # configure grub
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
@ -216,6 +217,7 @@ For a headless server installation ~yavdr07-headless.yml~ is a good choice
|
|||||||
- nfs-server
|
- nfs-server
|
||||||
- grub-config
|
- grub-config
|
||||||
- autoinstall-satip
|
- autoinstall-satip
|
||||||
|
- wakeup
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
handlers:
|
handlers:
|
||||||
@ -303,7 +305,6 @@ extra_packages:
|
|||||||
- bpython3
|
- bpython3
|
||||||
- htop
|
- htop
|
||||||
- tree
|
- tree
|
||||||
- vdr-addon-acpiwakeup
|
|
||||||
- vim
|
- vim
|
||||||
- w-scan
|
- w-scan
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
@ -312,6 +313,7 @@ extra_packages:
|
|||||||
frontend: vdr
|
frontend: vdr
|
||||||
#system:
|
#system:
|
||||||
# shutdown: poweroff
|
# shutdown: poweroff
|
||||||
|
wakeup_method: acpiwakeup
|
||||||
grub:
|
grub:
|
||||||
timeout: 0
|
timeout: 0
|
||||||
boot_options: quiet nosplash
|
boot_options: quiet nosplash
|
||||||
@ -3180,6 +3182,7 @@ If a Sat>IP Server responds to a discovery request, the package vdr-plugin-satip
|
|||||||
- name: apt | install vdr-plugin-satip if a Sat>IP server has been detected
|
- name: apt | install vdr-plugin-satip if a Sat>IP server has been detected
|
||||||
apt:
|
apt:
|
||||||
name: vdr-plugin-satip
|
name: vdr-plugin-satip
|
||||||
|
state: present
|
||||||
when: satip_devices
|
when: satip_devices
|
||||||
notify: [ 'Restart VDR' ]
|
notify: [ 'Restart VDR' ]
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
@ -3275,7 +3278,7 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
|
|||||||
notify: [ 'Restart VDR' ]
|
notify: [ 'Restart VDR' ]
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** autoinstall-hardware-irmp
|
** autoinstall-hardware-irmp
|
||||||
*** sasks
|
*** tasks
|
||||||
#+BEGIN_SRC yaml :tangle roles/autoinstall-hardware-irmp/tasks/main.yml :padline no
|
#+BEGIN_SRC yaml :tangle roles/autoinstall-hardware-irmp/tasks/main.yml :padline no
|
||||||
---
|
---
|
||||||
# file roles/autoinstall-hardware-irmp/tasks/main.yml
|
# file roles/autoinstall-hardware-irmp/tasks/main.yml
|
||||||
@ -3283,6 +3286,7 @@ Problem: woher kommt der Treiber (AFAIK noch nicht im Kernel)? Die Firmware soll
|
|||||||
- name: apt | install yavdr-hardware-irmp if connected
|
- name: apt | install yavdr-hardware-irmp if connected
|
||||||
apt:
|
apt:
|
||||||
name: yavdr-hardware-irmp
|
name: yavdr-hardware-irmp
|
||||||
|
state: present
|
||||||
when: '"1209:4444" in usb'
|
when: '"1209:4444" in usb'
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
@ -3559,6 +3563,31 @@ system:
|
|||||||
mode:
|
mode:
|
||||||
- "1280x720_60"
|
- "1280x720_60"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
** wakeup
|
||||||
|
*** defaults
|
||||||
|
#+BEGIN_SRC yaml :tangle roles/wakeup/defaults/main.yml :padline no
|
||||||
|
---
|
||||||
|
# file roles/wakeup/defaults/main.yml
|
||||||
|
wakeup_method: "acpiwakeup"
|
||||||
|
#+END_SRC
|
||||||
|
*** tasks
|
||||||
|
#+BEGIN_SRC yaml :tangle roles/wakeup/tasks/main.yml :padline no
|
||||||
|
---
|
||||||
|
# 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"
|
||||||
|
#+END_SRC
|
||||||
** grub-config
|
** grub-config
|
||||||
*** default variables
|
*** default variables
|
||||||
#+BEGIN_SRC yaml :tangle roles/grub-config/defaults/main.yml :mkdirp yes :padline no
|
#+BEGIN_SRC yaml :tangle roles/grub-config/defaults/main.yml :mkdirp yes :padline no
|
||||||
|
@ -50,12 +50,12 @@ extra_packages:
|
|||||||
- bpython3
|
- bpython3
|
||||||
- htop
|
- htop
|
||||||
- tree
|
- tree
|
||||||
- vdr-addon-acpiwakeup
|
|
||||||
- vim
|
- vim
|
||||||
- w-scan
|
- w-scan
|
||||||
frontend: vdr
|
frontend: vdr
|
||||||
#system:
|
#system:
|
||||||
# shutdown: poweroff
|
# shutdown: poweroff
|
||||||
|
wakeup_method: acpiwakeup
|
||||||
grub:
|
grub:
|
||||||
timeout: 0
|
timeout: 0
|
||||||
boot_options: quiet nosplash
|
boot_options: quiet nosplash
|
||||||
|
@ -4,4 +4,5 @@
|
|||||||
- name: apt | install yavdr-hardware-irmp if connected
|
- name: apt | install yavdr-hardware-irmp if connected
|
||||||
apt:
|
apt:
|
||||||
name: yavdr-hardware-irmp
|
name: yavdr-hardware-irmp
|
||||||
|
state: present
|
||||||
when: '"1209:4444" in usb'
|
when: '"1209:4444" in usb'
|
||||||
|
@ -11,5 +11,6 @@
|
|||||||
- name: apt | install vdr-plugin-satip if a Sat>IP server has been detected
|
- name: apt | install vdr-plugin-satip if a Sat>IP server has been detected
|
||||||
apt:
|
apt:
|
||||||
name: vdr-plugin-satip
|
name: vdr-plugin-satip
|
||||||
|
state: present
|
||||||
when: satip_devices
|
when: satip_devices
|
||||||
notify: [ 'Restart VDR' ]
|
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: configure_system.yml
|
||||||
- import_tasks: create_directories.yml
|
- import_tasks: create_directories.yml
|
||||||
tags: [install]
|
tags: [install]
|
||||||
|
|
||||||
- import_tasks: gather_facts.yml
|
|
||||||
tags: [install, autodetect]
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
- nfs-server
|
- nfs-server
|
||||||
- grub-config
|
- grub-config
|
||||||
- autoinstall-satip
|
- autoinstall-satip
|
||||||
|
- wakeup
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
handlers:
|
handlers:
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
- kodi
|
- kodi
|
||||||
- dvd # set up packages and a udev rule to allow kodi and other players
|
- dvd # set up packages and a udev rule to allow kodi and other players
|
||||||
# to play and eject optical media
|
# to play and eject optical media
|
||||||
|
- wakeup # set up wakeup methods for rtc etc.
|
||||||
- grub-config # configure grub
|
- grub-config # configure grub
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
|
Loading…
Reference in New Issue
Block a user