Skip to content
Snippets Groups Projects
Commit b24b7cb9 authored by nimrod's avatar nimrod
Browse files

Adjust root mail alias to function on both Debian and OpenBSD, updated the TODO list accordingly.

parent cf71f5c5
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,6 @@ TODO
- collectd_agent.
- init (via module).
- ldap_login (with pam_mkhomedir).
- mail_forward (OpenBSD support?).
- ssh_ca.
- syslog_forwarding.
- Test.
......
......@@ -14,6 +14,11 @@
- name: Set root mail alias
lineinfile:
dest: '/etc/aliases'
dest: '{{ aliases_file[ansible_os_family] }}'
line: 'root: {{ mail_root_alias }}'
regexp: '^root:'
register: root_alias
- name: Update SMTPd database
when: ansible_os_family == 'OpenBSD' and root_alias.changed
command: /usr/sbin/makemap /etc/mail/aliases
......@@ -53,3 +53,6 @@ ntp_pool:
ntpd_service:
OpenBSD: ntpd
Debian: ntp
aliases_file:
OpenBSD: /etc/mail/aliases
Debian: /etc/aliases
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment