From ba5d5e607bf5b651f3b19fc9b84209d0f4097294 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 8 Dec 2013 00:58:07 +0100 Subject: Configure S.M.A.R.T. --- roles/common/tasks/smart.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 roles/common/tasks/smart.yml (limited to 'roles/common/tasks/smart.yml') diff --git a/roles/common/tasks/smart.yml b/roles/common/tasks/smart.yml new file mode 100644 index 0000000..2c7ac17 --- /dev/null +++ b/roles/common/tasks/smart.yml @@ -0,0 +1,14 @@ +- name: Install smartmontools + # apt-listbugs complains due to #706909. + apt: pkg=smartmontools + +- name: Configure smartmontools + lineinfile: dest=/etc/default/smartmontools + regexp='^(\s*#)?\s*start_smartd=' + line='start_smartd=yes' + owner=root group=root + mode=0644 + +- name: Start smartd + service: name=smartmontools state=started + when: ansible_virtualization_role is not defined and ansible_virtualization_type is not defined -- cgit v1.2.3