diff --git a/debian12-basic/playbook.yml b/debian12-basic/playbook.yml index 108d73b..30bd90a 100644 --- a/debian12-basic/playbook.yml +++ b/debian12-basic/playbook.yml @@ -24,6 +24,8 @@ - make - fzf - ncdu + - msmtp + - msmtp-mta - name: Remove "neovim" package ansible.builtin.apt: @@ -143,3 +145,10 @@ repo: 'https://github.com/LazyVim/starter' dest: '~/.config/nvim/' when: not nvimConfig.stat.exists + + # Setup mail + - name: Template a file to /etc/msmtprc + ansible.builtin.template: + src: msmtprc.j2 + dest: /etc/msmtprc + mode: '0644' diff --git a/debian12-basic/templates/msmtprc.j2 b/debian12-basic/templates/msmtprc.j2 new file mode 100644 index 0000000..0a04948 --- /dev/null +++ b/debian12-basic/templates/msmtprc.j2 @@ -0,0 +1,12 @@ +defaults +auth on +tls on +tls_trust_file /etc/ssl/certs/ca-certificates.crt +logfile ~/.msmtp.log + +account default +host email.keks.cloud +port 587 +from server@keks.cloud +user server@keks.cloud +password {{ smtp_password }}