From 4b57840f9f07ed1b8413dcc967d06a4e882d7bdb Mon Sep 17 00:00:00 2001 From: nd <git@notandy.de> Date: Sat, 8 Aug 2020 00:24:28 +0200 Subject: [PATCH] overwrite smartmontools defaults --- files/smartmontools | 13 +++++++++++++ tasks/main.yml | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 files/smartmontools diff --git a/files/smartmontools b/files/smartmontools new file mode 100644 index 0000000..70b3cdc --- /dev/null +++ b/files/smartmontools @@ -0,0 +1,13 @@ +# Defaults for smartmontools initscript (/etc/init.d/smartmontools) +# This is a POSIX shell fragment + +# List of devices you want to explicitly enable S.M.A.R.T. for +# Not needed (and not recommended) if the device is monitored by smartd +#enable_smart="/dev/hda /dev/hdb" + +# uncomment to start smartd on system startup +#start_smartd=yes + +# uncomment to pass additional options to smartd on startup +#smartd_opts="--interval=1800" +smartd_opts="-q never" diff --git a/tasks/main.yml b/tasks/main.yml index 22397cb..a1de87e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -20,3 +20,9 @@ src: dotfiles/screenrc dest: /etc/screenrc mode: 0644 + +- name: work around a debian bug in smartmontools + copy: + src: smartmontools + dest: /etc/default/smartmontools + mode: 0644 -- GitLab