Release of EvoBSD 6.8.0 #37

Merged
jlecour merged 168 commits from dev into master 2020-10-23 12:13:36 +02:00
Showing only changes of commit 7ecf7be4a4 - Show all commits

View file

@ -1,4 +1,13 @@
---
- name: Fetch rc.local content
command: "grep -v '^#' /etc/rc.local"
check_mode: false
register: rclocal_content
failed_when: false
changed_when: false
tags:
- misc
- name: Configure rc.local
lineinfile:
path: /etc/rc.local
@ -6,6 +15,8 @@
'date | mail -s "boot/reboot of $(hostname -s)" {{ general_alert_email }}'
insertbefore: 'echo'
create: true
when:
- not (rclocal_content.stdout | regex_search('date \| mail -s (\"|\')boot/reboot of \$\(hostname -s\)'))
tags:
- misc