diff --git a/Manual.org b/Manual.org index f0bc063..04c9ec8 100644 --- a/Manual.org +++ b/Manual.org @@ -461,22 +461,10 @@ yavdr-common executes the following tasks: #+END_SRC ***** Use bash instead of dash #+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/configure_system.yml :mkdirp yes -- name: apt | ensure debconf and debconf-utils are installed - apt: - name: "{{ packages }}" - vars: - packages: - - debconf - - debconf-utils - -- name: use bash instead of dash by default - debconf: - name: dash - question: dash/sh - value: 'false' - vtype: select - notify: ['Reconfigure unattended upgrades with dpkg'] - +- name: use bash instead of dash + shell: | + echo "set dash/sh false" | debconf-communicate + dpkg-reconfigure -f noninteractive dash #+END_SRC ***** create user vdr diff --git a/roles/grub-config/handlers/main.yml b/roles/grub-config/handlers/main.yml index 21185fc..b6d741c 100644 --- a/roles/grub-config/handlers/main.yml +++ b/roles/grub-config/handlers/main.yml @@ -1,10 +1,5 @@ --- -- name: Update Initramfs - command: "update-initramfs -u" - failed_when: ('error' in initramfs_register_update.stderr) - register: initramfs_register_update - - name: Update GRUB command: update-grub failed_when: ('error' in grub_register_update.stderr) diff --git a/roles/yavdr-common/tasks/configure_system.yml b/roles/yavdr-common/tasks/configure_system.yml index 37e310a..da3184f 100644 --- a/roles/yavdr-common/tasks/configure_system.yml +++ b/roles/yavdr-common/tasks/configure_system.yml @@ -1,18 +1,7 @@ -- name: apt | ensure debconf and debconf-utils are installed - apt: - name: "{{ packages }}" - vars: - packages: - - debconf - - debconf-utils - -- name: use bash instead of dash by default - debconf: - name: dash - question: dash/sh - value: 'false' - vtype: select - notify: ['Reconfigure unattended upgrades with dpkg'] +- name: use bash instead of dash + shell: | + echo "set dash/sh false" | debconf-communicate + dpkg-reconfigure -f noninteractive dash - name: create vdr group group: gid: '{{ vdr.gid }}'