Revert "use debconf module instead of shell command"

openbox autostart calls the autostart script with sh as shell and
using ansible's debconf module does not change dash to bash
successfully, so for the moment we need to use the shell command instead.

This reverts commit 4170935a5a.
This commit is contained in:
Alexander Grothe 2018-08-09 10:07:20 +02:00
parent 43ced38313
commit 264f1b311c
3 changed files with 8 additions and 36 deletions

View File

@ -461,22 +461,10 @@ yavdr-common executes the following tasks:
#+END_SRC #+END_SRC
***** Use bash instead of dash ***** Use bash instead of dash
#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/configure_system.yml :mkdirp yes #+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/configure_system.yml :mkdirp yes
- name: apt | ensure debconf and debconf-utils are installed - name: use bash instead of dash
apt: shell: |
name: "{{ packages }}" echo "set dash/sh false" | debconf-communicate
vars: dpkg-reconfigure -f noninteractive dash
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']
#+END_SRC #+END_SRC
***** create user vdr ***** create user vdr

View File

@ -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 - name: Update GRUB
command: update-grub command: update-grub
failed_when: ('error' in grub_register_update.stderr) failed_when: ('error' in grub_register_update.stderr)

View File

@ -1,18 +1,7 @@
- name: apt | ensure debconf and debconf-utils are installed - name: use bash instead of dash
apt: shell: |
name: "{{ packages }}" echo "set dash/sh false" | debconf-communicate
vars: dpkg-reconfigure -f noninteractive dash
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: create vdr group - name: create vdr group
group: group:
gid: '{{ vdr.gid }}' gid: '{{ vdr.gid }}'