diff --git a/roles/server/tasks/system_setup/mail.yml b/roles/server/tasks/system_setup/mail.yml new file mode 100644 index 0000000..ddaeb25 --- /dev/null +++ b/roles/server/tasks/system_setup/mail.yml @@ -0,0 +1,8 @@ +- name: server | system_setup | create mail aliases + lineinfile: + path: "/etc/alias" + state: present + line: "root rene@tantooine.myfirewall.org" # not required. The line to insert/replace into the file. Required for C(state=present). If C(backrefs) is set, may contain backreferences that will get expanded with the C(regexp) capture groups if the regexp matches. + +- name: server | system setup | generate aliases db + command: newaliases \ No newline at end of file