From 1dc6f1c00be50b7b608638af9bd19903d3c0d68c Mon Sep 17 00:00:00 2001 From: Alexander Grothe Date: Fri, 3 Mar 2017 00:35:14 +0100 Subject: [PATCH] Set bash instead of dash, update default variables for grub-config --- Manual.org | 25 ++++++++++++++++++++++--- roles/grub-config/defaults/main.yml | 7 ++++--- roles/yavdr-common/tasks/main.yml | 13 +++++++++++++ 3 files changed, 39 insertions(+), 6 deletions(-) diff --git a/Manual.org b/Manual.org index 0b407fa..48076fb 100644 --- a/Manual.org +++ b/Manual.org @@ -236,6 +236,24 @@ yavdr-common executes the following tasks: dest: /etc/apt/apt.conf.d/90norecommends #+END_SRC +***** Use bash instead of dash +#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :mkdirp yes +- name: use bash instead of dash + shell: | + echo "set dash/sh false" | debconf-communicate + dpkg-reconfigure -f noninteractive dash +#+END_SRC + +***** Disable release-upgrade notifications +#+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :mkdirp yes +- name: disable release-upgrade notifications + lineinfile: + dest: /etc/update-manager/release-upgrades + backrefs: yes + state: present + regexp: '^(Prompt=).*$' + line: '\1never' +#+END_SRC ***** Setting up the package repositories #+BEGIN_SRC yaml :tangle roles/yavdr-common/tasks/main.yml :mkdirp yes - name: add yaVDR PPAs @@ -781,9 +799,10 @@ include = /etc/samba/smb.conf.custom *** default variables #+BEGIN_SRC yaml :tangle roles/grub-config/defaults/main.yml :mkdirp yes system: - shutdown: poweroff - grub: - timeout: 0 + shutdown: poweroff + grub: + timeout: 0 + boot_options: quiet nosplash #+END_SRC *** tasks #+BEGIN_SRC yaml :tangle roles/grub-config/tasks/main.yml :mkdirp yes diff --git a/roles/grub-config/defaults/main.yml b/roles/grub-config/defaults/main.yml index e800fd2..616d6e0 100644 --- a/roles/grub-config/defaults/main.yml +++ b/roles/grub-config/defaults/main.yml @@ -1,4 +1,5 @@ system: - shutdown: poweroff - grub: - timeout: 0 + shutdown: poweroff + grub: + timeout: 0 + boot_options: quiet nosplash diff --git a/roles/yavdr-common/tasks/main.yml b/roles/yavdr-common/tasks/main.yml index 314496b..fd5e2c7 100644 --- a/roles/yavdr-common/tasks/main.yml +++ b/roles/yavdr-common/tasks/main.yml @@ -8,6 +8,19 @@ src: templates/90-norecommends.j2 dest: /etc/apt/apt.conf.d/90norecommends +- name: use bash instead of dash + shell: | + echo "set dash/sh false" | debconf-communicate + dpkg-reconfigure -f noninteractive dash + +- name: disable release-upgrade notifications + lineinfile: + dest: /etc/update-manager/release-upgrades + backrefs: yes + state: present + regexp: '^(Prompt=).*$' + line: '\1never' + - name: add yaVDR PPAs apt_repository: repo: '{{ item }}'