standard mta on arch is not ssmtp
so use variable for distro specific mtas
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
ignore_errors: True
|
||||
|
||||
- block:
|
||||
- include_tasks: utilities/ssmtp.yml
|
||||
- include_tasks: utilities/mta.yml
|
||||
- include_tasks: utilities/netdata.yml
|
||||
when: netdata is defined and netdata == true
|
||||
- include_tasks: utilities/snmpd.yml
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
- name: server | utilities | install ssmtp
|
||||
package:
|
||||
name: "ssmtp"
|
||||
name: "{{ mta_package }}"
|
||||
state: present
|
||||
when: postfix is not defined or postfix == false
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
mta_package: msmtp-mta
|
||||
snmpd_package: net-snmp
|
||||
snmpd_user_file: "/var/net-snmp/snmpd.conf"
|
||||
wireguard_package: wireguard-tools
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
mta_package: ssmtp
|
||||
snmpd_package: snmpd
|
||||
snmpd_user_file: "/var/lib/snmp/snmpd.conf"
|
||||
wireguard_package: wireguard
|
||||
|
||||
Reference in New Issue
Block a user