cronmails: Add option to skip Exim4 installation

This commit is contained in:
Jannik Beyerstedt 2022-11-06 20:37:54 +01:00
parent 584a7e506f
commit f3ffdfc133
3 changed files with 5 additions and 0 deletions

View file

@ -38,6 +38,9 @@ Mandatory variable:
- `cron_email`: Sender email address used by cron
- `exim_etc_mailname`: Exim4 /etc/mailname (default: inventory_hostname)
Optional settings:
- `exim_skip_install`: Skip installing Exim4 as MTA (default `false`)
### Docker
Optional variable:
- none

View file

@ -11,3 +11,4 @@ telegraf_unifi_file: "telegraf-UniFi.conf.j2"
telegraf_airmax_file: "telegraf-AirMAX.conf.j2"
exim_etc_mailname: "{{ inventory_hostname }}"
exim_skip_install: false

View file

@ -3,6 +3,7 @@
# Install and configure exim
- name: cronmails - Install exim4
when: not exim_skip_install
ansible.builtin.include_tasks: "{{ item }}"
with_first_found:
- "cronmails-{{ ansible_distribution }}.{{ ansible_distribution_release }}.yml"