Skip to content

Commit

Permalink
Merge pull request #74 from companieshouse/disable-cron-mails
Browse files Browse the repository at this point in the history
Disable cron job output emails
  • Loading branch information
marcransome authored Oct 11, 2023
2 parents c05d22e + 6eb973c commit 4784f6f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions roles/deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@
job: "logrotate {{ tuxedo_log_rotation_config_path }}"
cron_file: /etc/crontab

- name: Disable cron job output emails
cronvar:
name: MAILTO
value: ""
cron_file: "{{ item }}"
loop:
- /etc/crontab
- /etc/cron.d/clamav-update

- include_tasks: deploy.yml
loop: "{{ tuxedo_service_users }}"
loop_control:
Expand Down

0 comments on commit 4784f6f

Please sign in to comment.