2018-12-28 11:23:49 +01:00
|
|
|
---
|
|
|
|
- name: Configure rc.local
|
|
|
|
lineinfile:
|
|
|
|
path: /etc/rc.local
|
2020-06-04 18:51:53 +02:00
|
|
|
line:
|
|
|
|
'date | mail -s "boot/reboot of $(hostname -s)" {{ general_alert_email }}'
|
2020-06-01 11:37:15 +02:00
|
|
|
create: true
|
2018-12-28 11:23:49 +01:00
|
|
|
tags:
|
|
|
|
- misc
|
|
|
|
|
|
|
|
- name: Set root mail alias
|
|
|
|
replace:
|
|
|
|
dest: /etc/mail/aliases
|
|
|
|
regexp: "# root:"
|
|
|
|
replace: "root: {{ general_alert_email }}"
|
2020-06-01 11:37:15 +02:00
|
|
|
backup: false
|
2018-12-28 11:23:49 +01:00
|
|
|
notify:
|
|
|
|
- newaliases
|
|
|
|
tags:
|
|
|
|
- mail
|