From 21b794957d6b575fb1ab52effdb0cf7b7932f4a5 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 30 Jan 2023 21:27:19 +0200 Subject: [PATCH] handle local aliases --- tasks/configure.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasks/configure.yml b/tasks/configure.yml index 58d7716..8cf0818 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -183,6 +183,14 @@ owner: root group: postfix mode: 0640 + +- name: Create local aliases + ansible.builtin.lineinfile: + path: /etc/aliases + line: "{{ item.user }}: {{ item.alias }}" + match: "^{{ item.user }}: " + loop: "{{ local_aliases }}" + notify: Refresh aliases ################### # # # This at the end #