correct mail FROM

This commit is contained in:
vincent 2020-07-14 12:55:46 +02:00
parent 50f9086816
commit a73973f69e
2 changed files with 12 additions and 2 deletions

View File

@ -1,2 +1,5 @@
---
# defaults file for cronie
domain:
name: toto

View File

@ -7,3 +7,10 @@
- name: Enable cronie
service: name=cronie.service enabled=yes state=started
become: yes
- name: Set MAILFROM
become: true
lineinfile:
dest: /var/spool/cron/root
regexp: "MAILFROM="
line: "MAILFROM= {{inventory_hostname}}@{{domain.name}}"