This repository has been archived on 2023-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
homeserver-ansible/roles/services/mail/tasks/main.yml

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