crontab mail to
This commit is contained in:
parent
d3ab23bdfc
commit
9fabdcca38
1 changed files with 11 additions and 0 deletions
|
|
@ -152,3 +152,14 @@
|
||||||
src: msmtprc.j2
|
src: msmtprc.j2
|
||||||
dest: /etc/msmtprc
|
dest: /etc/msmtprc
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
|
- name: Setze MAILTO in der Crontab des Benutzers
|
||||||
|
ansible.builtin.blockinfile:
|
||||||
|
path: /var/spool/cron/crontabs/{{ cron_user }}
|
||||||
|
block: |
|
||||||
|
MAILTO="{{ cron_mailto }}"
|
||||||
|
marker: "# {mark} ANSIBLE MAILTO"
|
||||||
|
create: yes
|
||||||
|
owner: "{{ cron_user }}"
|
||||||
|
group: crontab
|
||||||
|
mode: '0600'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue