use debconf module instead of shell command
This commit is contained in:
parent
05ca162830
commit
4170935a5a
23
Manual.org
23
Manual.org
@ -462,10 +462,25 @@ 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: use bash instead of dash
|
#- name: use bash instead of dash
|
||||||
shell: |
|
# shell: |
|
||||||
echo "set dash/sh false" | debconf-communicate
|
# echo "set dash/sh false" | debconf-communicate
|
||||||
dpkg-reconfigure -f noninteractive dash
|
# dpkg-reconfigure -f noninteractive dash
|
||||||
|
|
||||||
|
- name: 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
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
***** create user vdr
|
***** create user vdr
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
- 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)
|
||||||
|
@ -1,7 +1,22 @@
|
|||||||
- name: use bash instead of dash
|
#- name: use bash instead of dash
|
||||||
shell: |
|
# shell: |
|
||||||
echo "set dash/sh false" | debconf-communicate
|
# echo "set dash/sh false" | debconf-communicate
|
||||||
dpkg-reconfigure -f noninteractive dash
|
# dpkg-reconfigure -f noninteractive dash
|
||||||
|
|
||||||
|
- name: 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
|
||||||
- name: create vdr group
|
- name: create vdr group
|
||||||
group:
|
group:
|
||||||
gid: '{{ vdr.gid }}'
|
gid: '{{ vdr.gid }}'
|
||||||
|
Loading…
Reference in New Issue
Block a user