summaryrefslogtreecommitdiff
path: root/ansible/roles/smarthost-client
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-07-09 10:29:47 +0300
committerLars Wirzenius <liw@liw.fi>2018-07-09 10:29:47 +0300
commit5710d7d9b4b603cdc44fa29efe69631218897b07 (patch)
tree06f859a83d668e77155cb5123f43a35ab3b22b0b /ansible/roles/smarthost-client
parent7c4694a58054f720e8e94a2d59141ee9b6f1e40f (diff)
downloadansibleness-5710d7d9b4b603cdc44fa29efe69631218897b07.tar.gz
Add: install aliases
Diffstat (limited to 'ansible/roles/smarthost-client')
-rw-r--r--ansible/roles/smarthost-client/tasks/main.yml12
1 files changed, 12 insertions, 0 deletions
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
+