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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -