How to add MAILTO to a cron.d cron_file in Ansible? -
i'm using ansible create cron.d file using cron_file parameter.
but how can add mailto file?
it seems env=true crontab, not cron.d files. wrong?
since ansible 2.0 have cronvar
command:
# modify /etc/cron.d/sweep_for_rebel_code - cronvar: name: mailto value: vader@evilempire.com cron_file: sweep_for_rebel_code
see official documentation @ http://docs.ansible.com/ansible/cronvar_module.html
Comments
Post a Comment