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/tasks/mail.yml
2022-02-27 16:05:34 -05: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