ansible-infra/roles/msmtp/tasks/main.yaml
lilly 5787a9d792
Some checks failed
/ Ansible Lint (push) Failing after 2m30s
/ Ansible Lint (pull_request) Failing after 2m32s
add role tag to msmtp role
2026-04-30 23:19:44 +02:00

17 lines
327 B
YAML

---
- tags: ["msmtp"]
name: ensure msmtp is installed
ansible.builtin.apt:
name: msmtp
state: present
become: true
- tags: ["msmtp"]
name: ensure msmtp config for root user
ansible.builtin.template:
src: msmtprc.j2
dest: /root/.msmtprc
owner: root
group: root
mode: "0600"
become: true