ansible-infra/roles/msmtp/tasks/main.yaml
lilly 9aeedc3e78
Some checks failed
/ Ansible Lint (push) Failing after 2m26s
/ Ansible Lint (pull_request) Failing after 2m23s
add role tag to msmtp role
2026-04-30 23:06:40 +02:00

16 lines
323 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