homeserver/roles/mgrote.smart/tasks/main.yml
mg d7dd0ef313 Defaults + Syntax (#65)
zed defaults

zed syntax

scrub syntax

sanoid mit ts

health syntax

arc syntax

tmux syntax

smart syntax

restic handler

restic syntax

postfix syntax

chrony syntax

muster script mit ts

muster syntax

motd meta

motd syntax

smb syntax

f2b syntax

moreutils als standardsoftware

rasdaemon + cv4pve. date durch ts ersetzt

dokuwiki defaults

dokuwiki syntax

cv4 handler entfernt

apt manage sources: / in var

apt install packages syntax

apcupsd syntax

acng defaults

acng syntax

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#65
Co-Authored-By: mg <mg@noreply.git.mgrote.net>
Co-Committed-By: mg <mg@noreply.git.mgrote.net>
2021-04-09 23:29:03 +02:00

46 lines
1.3 KiB
YAML

---
#Blockdevice/Festplatten muessen haendisch in "templates" eingetragen werden
- name: smartmontools installieren
become: yes
ansible.builtin.package:
name: smartmontools
state: present
- name: smartmontools kopieren
become: yes
ansible.builtin.template:
src: "smartmontools"
dest: "/etc/default/smartmontools"
notify: smartmontools_starten_aktivieren
- name: smartd.conf kopieren
become: yes
ansible.builtin.template:
src: "smartd.conf"
dest: "/etc/smartd.conf"
notify: smartmontools_starten_aktivieren
- name: smartctl_mail.sh kopieren
become: yes
ansible.builtin.template:
src: "smartctl_mail.sh"
dest: "/usr/local/bin/smartctl_mail.sh"
mode: a+x
- name: smart_status.sh kopieren
become: yes
ansible.builtin.template:
src: "smart_status.sh"
dest: "/usr/local/bin/smart_status.sh"
mode: a+x
# smartctl output als mail
- name: cronjob fuer smartctl-mail
become: yes
ansible.builtin.cron:
name: smart-mail
state: present
job: "/usr/local/bin/smartctl_mail.sh"
minute: "{{ smart_smartctlmail_cron_minutes }}"
hour: "{{ smart_smartctlmail_cron_hours }}"
weekday: "{{ smart_smartctlmail_cron_weekday }}"