Patrick Marchand
98089a3274
In some cases I used block scalars: https://yaml-multiline.info/ In other cases I added newlines In rare cases I just ignored the rule: https://yamllint.readthedocs.io/en/stable/disable_with_comments.html
21 lines
397 B
YAML
21 lines
397 B
YAML
---
|
|
- name: Configure rc.local
|
|
lineinfile:
|
|
path: /etc/rc.local
|
|
line:
|
|
'date | mail -s "boot/reboot of $(hostname -s)" {{ general_alert_email }}'
|
|
create: true
|
|
tags:
|
|
- misc
|
|
|
|
- name: Set root mail alias
|
|
replace:
|
|
dest: /etc/mail/aliases
|
|
regexp: "# root:"
|
|
replace: "root: {{ general_alert_email }}"
|
|
backup: false
|
|
notify:
|
|
- newaliases
|
|
tags:
|
|
- mail
|