Add udiskie to yavdr-desktop role
this is used to mount external data devices automatically Add yavdr-i18n to the default packages, so translations using the transale filter will work properly
This commit is contained in:
@@ -143,6 +143,9 @@
|
||||
group: '{{ vdr.group }}'
|
||||
force: no
|
||||
|
||||
- name: set up udiskie
|
||||
include_tasks: udiskie.yml
|
||||
|
||||
- name: link /usr/bin/start-desktop to /var/lib/vdr/plugins/desktop/starter
|
||||
file:
|
||||
src: /usr/bin/start-desktop
|
||||
|
||||
26
roles/yavdr-desktop/tasks/udiskie.yml
Normal file
26
roles/yavdr-desktop/tasks/udiskie.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
- name: install udiskie
|
||||
apt:
|
||||
name:
|
||||
- udiskie
|
||||
|
||||
- name: create ~/.config/udiskie
|
||||
file:
|
||||
name: '{{ vdr.home }}/.config/udiskie'
|
||||
|
||||
- name: expand template for udiskie's config.yml
|
||||
template:
|
||||
src: templates/udiskie/config.yml.j2
|
||||
dest: '{{ vdr.home }}/.config/udiskie/config.yml'
|
||||
|
||||
- name: expand template for mount helper script
|
||||
template:
|
||||
src: templates/udiskie/udiskie_vdr_mount_helper.j2
|
||||
dest: '{{ vdr.home }}/bin/udiskie_vdr_mount_helper'
|
||||
mode: 0755
|
||||
owner: vdr
|
||||
group: vdr
|
||||
|
||||
- name: expand template for udiskie vdr commands
|
||||
template:
|
||||
src: templates/udiskie/umount_all.j2
|
||||
dest: /usr/share/vdr/command-hooks/commands.udiskie.conf
|
||||
Reference in New Issue
Block a user