homeserver-iac/roles/mail/tasks/main.yml

20 lines
346 B
YAML
Raw Normal View History

- 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