msmtp(role): introduce msmtp role

Introduce msmtp role for setting up msmtp for mail sending.
Also add accompanying host group and playbook play.
This commit is contained in:
June 2025-10-14 01:40:46 +02:00
commit afceb886dc
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
6 changed files with 83 additions and 0 deletions

View file

@ -0,0 +1,14 @@
- name: ensure msmtp is installed
ansible.builtin.apt:
name: msmtp
state: present
become: true
- name: ensure msmtp config for root user
ansible.builtin.template:
src: msmtprc.j2
dest: /root/.msmtprc
owner: root
group: root
mode: "0600"
become: true