chore(basic): add msmtp
This commit is contained in:
parent
1710078fdb
commit
d3ab23bdfc
2 changed files with 21 additions and 0 deletions
|
|
@ -24,6 +24,8 @@
|
||||||
- make
|
- make
|
||||||
- fzf
|
- fzf
|
||||||
- ncdu
|
- ncdu
|
||||||
|
- msmtp
|
||||||
|
- msmtp-mta
|
||||||
|
|
||||||
- name: Remove "neovim" package
|
- name: Remove "neovim" package
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
|
|
@ -143,3 +145,10 @@
|
||||||
repo: 'https://github.com/LazyVim/starter'
|
repo: 'https://github.com/LazyVim/starter'
|
||||||
dest: '~/.config/nvim/'
|
dest: '~/.config/nvim/'
|
||||||
when: not nvimConfig.stat.exists
|
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'
|
||||||
|
|
|
||||||
12
debian12-basic/templates/msmtprc.j2
Normal file
12
debian12-basic/templates/msmtprc.j2
Normal file
|
|
@ -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 }}
|
||||||
Loading…
Add table
Reference in a new issue