homeserver-iac/roles/mail/tasks/main.yml
2023-08-21 17:19:29 -04:00

20 lines
346 B
YAML

- name: Install mail packages
community.general.pacman:
name:
- neomutt
- exim
state: present
- name: Redirect root mail to ansible agent
lineinfile:
dest: /etc/mail/aliases
regexp: "^#root:"
line: "root: {{ ansible_user }}"
- name: Enable exim
service:
name: exim
state: started
enabled: yes