cronmails: Add option to skip Exim4 installation

master
Jannik Beyerstedt 3 months ago
parent 584a7e506f
commit f3ffdfc133

@ -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

@ -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

@ -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"

Loading…
Cancel
Save