From 115d364d36e1e57d213ca726b7be442f651e9a63 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 19 Aug 2024 23:32:58 +0200 Subject: [PATCH] d --- roles/mgrote_munin_server/defaults/main.yml | 4 ---- roles/mgrote_munin_server/tasks/main.yml | 8 -------- roles/mgrote_munin_server/templates/ssmtp.conf | 12 ------------ 3 files changed, 24 deletions(-) delete mode 100644 roles/mgrote_munin_server/templates/ssmtp.conf diff --git a/roles/mgrote_munin_server/defaults/main.yml b/roles/mgrote_munin_server/defaults/main.yml index 3cabb5c7..494f7465 100644 --- a/roles/mgrote_munin_server/defaults/main.yml +++ b/roles/mgrote_munin_server/defaults/main.yml @@ -27,10 +27,6 @@ munin_cron_job: present munin_dbdir: "/var/lib/munin" munin_enable_alerts: false -munin_mail_server: mail.server.com -munin_mail_port: 25 -munin_mail_tls: false -munin_alerts_to: nobody@nowhere.com munin_mode: cgi # or cron diff --git a/roles/mgrote_munin_server/tasks/main.yml b/roles/mgrote_munin_server/tasks/main.yml index 7f605c54..0ae1e90a 100644 --- a/roles/mgrote_munin_server/tasks/main.yml +++ b/roles/mgrote_munin_server/tasks/main.yml @@ -75,12 +75,4 @@ owner: munin group: munin when: not placeholder.stat.exists - -- name: Template ssmtp config - ansible.builtin.template: - src: ssmtp.conf - dest: /etc/ssmtp/ssmtp.conf - mode: '0644' - owner: root - group: root ... diff --git a/roles/mgrote_munin_server/templates/ssmtp.conf b/roles/mgrote_munin_server/templates/ssmtp.conf deleted file mode 100644 index 27a5b091..00000000 --- a/roles/mgrote_munin_server/templates/ssmtp.conf +++ /dev/null @@ -1,12 +0,0 @@ -# The user that gets all the mails (UID < 1000, usually the admin) -root={{ munin_alerts_to }} - -# The mail server (where the mail is sent to), both port 465 or 587 should be acceptable -# See also https://support.google.com/mail/answer/78799 -mailhub={{ munin_mail_server }}:{{ munin_mail_port }} - -# The full hostname. Must be correctly formed, fully qualified domain name or GMail will reject connection. -hostname={{ munin_servername }} - -# Use implicit TLS (port 465). When using port 587, change UseSTARTTLS=Yes -UseTLS={{ munin_mail_tls }}