From 40c26b8ca1d002a7648f2e7de332fa692fbb1a0f Mon Sep 17 00:00:00 2001 From: Lars Beckers <lars.beckers@rwth-aachen.de> Date: Wed, 31 Aug 2022 00:37:31 +0200 Subject: [PATCH] shell: add option to disable pcspkr blacklisting Unfortunately, there is a popular hoster that offers systems where blacklisting pcspkr results in a failure. Since these are virtual systems its not really relevant anyway. The simplest solution was to make it configurable. --- shell/defaults/main.yml | 2 ++ shell/tasks/shell.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/shell/defaults/main.yml b/shell/defaults/main.yml index e87b9b2..bf965fe 100644 --- a/shell/defaults/main.yml +++ b/shell/defaults/main.yml @@ -8,3 +8,5 @@ shell_software: - pwgen - snmp - telnet + +shell_blacklist_pcspkr: true diff --git a/shell/tasks/shell.yml b/shell/tasks/shell.yml index 148fb92..a0f7911 100644 --- a/shell/tasks/shell.yml +++ b/shell/tasks/shell.yml @@ -129,7 +129,7 @@ - name: ensure that pcspeaker remains silent kernel_blacklist: name: pcspkr - state: present + state: "{{ 'present' if shell_blacklist_pcspkr else 'absent' }}" notify: - rerun depmod - update initramfs -- GitLab