From 9d1eb3a6e35a229bd5bde21df11aee93d52ff104 Mon Sep 17 00:00:00 2001 From: Alexander Grothe Date: Mon, 13 Nov 2017 09:14:11 +0100 Subject: [PATCH] use debconf module instead of shell command --- roles/dvd/tasks/main.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/roles/dvd/tasks/main.yml b/roles/dvd/tasks/main.yml index 4f7a37f..4fa8e44 100644 --- a/roles/dvd/tasks/main.yml +++ b/roles/dvd/tasks/main.yml @@ -1,10 +1,10 @@ --- # file: roles/dvd/tasks/main.yml -- name: preconfigure libdvd-pkg - shell: | - echo 'libdvd-pkg libdvd-pkg/post-invoke_hook-install boolean true' | debconf-set-selections - echo 'libdvd-pkg libdvd-pkg/build boolean true' | debconf-set-selections +#- name: preconfigure libdvd-pkg +# shell: | +# echo 'libdvd-pkg libdvd-pkg/post-invoke_hook-install boolean true' | debconf-set-selections +# echo 'libdvd-pkg libdvd-pkg/build boolean true' | debconf-set-selections - name: apt | install libdvd-pkg apt: @@ -14,6 +14,16 @@ with_items: - libdvd-pkg +- name: configure package libdvd-pkg + debconf: + name: 'libdvd-pkg' + question: '{{ item }}' + vtype: boolean + value: true + with_items: + - libdvd-pkg/post-invoke_hook-install + - libdvd-pkg/build boolean + - name: change udev rule to allow KODI to eject optical disks shell: sed 's/--lock-media //' /lib/udev/rules.d/60-cdrom_id.rules > /etc/udev/rules.d/60-cdrom_id.rules args: