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
|
ignore_errors: True
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- include_tasks: utilities/ssmtp.yml
|
- include_tasks: utilities/mta.yml
|
||||||
- include_tasks: utilities/netdata.yml
|
- include_tasks: utilities/netdata.yml
|
||||||
when: netdata is defined and netdata == true
|
when: netdata is defined and netdata == true
|
||||||
- include_tasks: utilities/snmpd.yml
|
- include_tasks: utilities/snmpd.yml
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
- name: server | utilities | install ssmtp
|
- name: server | utilities | install ssmtp
|
||||||
package:
|
package:
|
||||||
name: "ssmtp"
|
name: "{{ mta_package }}"
|
||||||
state: present
|
state: present
|
||||||
when: postfix is not defined or postfix == false
|
when: postfix is not defined or postfix == false
|
||||||
|
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
mta_package: msmtp-mta
|
||||||
snmpd_package: net-snmp
|
snmpd_package: net-snmp
|
||||||
snmpd_user_file: "/var/net-snmp/snmpd.conf"
|
snmpd_user_file: "/var/net-snmp/snmpd.conf"
|
||||||
wireguard_package: wireguard-tools
|
wireguard_package: wireguard-tools
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
mta_package: ssmtp
|
||||||
snmpd_package: snmpd
|
snmpd_package: snmpd
|
||||||
snmpd_user_file: "/var/lib/snmp/snmpd.conf"
|
snmpd_user_file: "/var/lib/snmp/snmpd.conf"
|
||||||
wireguard_package: wireguard
|
wireguard_package: wireguard
|
||||||
|
|||||||
Reference in New Issue
Block a user