diff --git a/roles/ai3-base/handlers/main.yml b/roles/ai3-base/handlers/main.yml index 58c9409a4472421853b36a4bc0e03aaf264754ef..d48b9a9bc2a9df9ad0570eb26d519d8296e147fd 100644 --- a/roles/ai3-base/handlers/main.yml +++ b/roles/ai3-base/handlers/main.yml @@ -7,8 +7,3 @@ systemd: name: auditd.service state: restarted - -- listen: restart smartd - systemd: - name: smartd.service - state: restarted diff --git a/roles/ai3-base/tasks/prod.yml b/roles/ai3-base/tasks/prod.yml index 91d4bf895c0ecc841c29be28f2b05f9328ce570f..1571d7fbe6c47fdd9a4c77cf6f6958de0831deff 100644 --- a/roles/ai3-base/tasks/prod.yml +++ b/roles/ai3-base/tasks/prod.yml @@ -30,7 +30,6 @@ state: present vars: packages: - - smartmontools - pciutils - ethtool - intel-microcode @@ -41,13 +40,3 @@ state: present when: "'nvme0n1' in ansible_devices" -- name: Configure smartd - template: - src: smartd.conf.j2 - dest: /etc/smartd.conf - notify: restart smartd - -- name: Disable smartd emails - file: - path: /etc/smartmontools/run.d/10mail - state: absent diff --git a/roles/ai3-base/templates/smartd.conf.j2 b/roles/ai3-base/templates/smartd.conf.j2 deleted file mode 100644 index a4c7c247b9961a33a35e0185d08a3a17d9ef8d9d..0000000000000000000000000000000000000000 --- a/roles/ai3-base/templates/smartd.conf.j2 +++ /dev/null @@ -1,8 +0,0 @@ -# Long tests once a month, on the 15th at 15.00 -# Short tests every Monday at 11.00 -DEFAULT -a -s (L/../15/./15|S/../../1/11) -m {{ alert_email }} -M exec /usr/share/smartmontools/smartd-runner - -# Host specific configuration -{{ smartd_extra_config | default('') }} - -DEVICESCAN {{ '-d nvme' if 'nvme0n1' in ansible_devices else '' }}