From 5710d7d9b4b603cdc44fa29efe69631218897b07 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 9 Jul 2018 10:29:47 +0300 Subject: Add: install aliases --- ansible/roles/smarthost-client/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ansible/roles/smarthost-client') diff --git a/ansible/roles/smarthost-client/tasks/main.yml b/ansible/roles/smarthost-client/tasks/main.yml index 899f736..933251c 100644 --- a/ansible/roles/smarthost-client/tasks/main.yml +++ b/ansible/roles/smarthost-client/tasks/main.yml @@ -29,3 +29,15 @@ - name: postmap relay credentials shell: | postmap /etc/postfix/sasl_passwd + +- name: install aliases + copy: + src: aliases + dest: /etc/aliases + owner: root + group: root + mode: 0644 + +- name: run newaliases + shell: newaliases + -- cgit v1.2.1