summaryrefslogtreecommitdiff
path: root/ansible/roles/mail-client
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-05-15 08:06:13 +0300
committerLars Wirzenius <liw@liw.fi>2016-05-15 08:06:13 +0300
commit240041c713f5cda1bb8142b3f78a6ff7c2658392 (patch)
tree7fb2125211f09f226f16f6c247dca53eff3069d7 /ansible/roles/mail-client
parenta360fdb9da05ff5439922f15e29cc93767636f1e (diff)
downloadansibleness-240041c713f5cda1bb8142b3f78a6ff7c2658392.tar.gz
Add name: to mail client tasks/main.yml
Diffstat (limited to 'ansible/roles/mail-client')
-rw-r--r--ansible/roles/mail-client/tasks/main.yml52
1 files changed, 38 insertions, 14 deletions
diff --git a/ansible/roles/mail-client/tasks/main.yml b/ansible/roles/mail-client/tasks/main.yml
index 626f5f3..256c22c 100644
--- a/ansible/roles/mail-client/tasks/main.yml
+++ b/ansible/roles/mail-client/tasks/main.yml
@@ -1,32 +1,56 @@
-- apt: name=mutt
-- apt: name=notmuch
-- apt: name=offlineimap
-- apt: name=procmail
-- apt: name=wotsap
-- apt: name=clab
-- apt: name=notmuch-mutt
-- apt: name=urlview
+- name: install mutt
+ apt: name=mutt
+
+- name: install notmuch
+ apt: name=notmuch
+
+- name: install notmuch-mutt
+ apt: name=notmuch-mutt
+
+- name: install offlineimap
+ apt: name=offlineimap
+
+- name: install procmail
+ apt: name=procmail
+
+- name: install wotsap
+ apt: name=wotsap
+
+- name: install clab
+ apt: name=clab
+
+- name: install urlview
+ apt: name=urlview
# I use a script to show calendar entries with mutt. That script needs
# this package. If I had packaged it, I wouldn't need this line.
-- apt: name=python-icalendar
+- name: install python-icalendar
+ apt: name=python-icalendar
# My offlineimap config requires the gnomekeyring Python module.
-- apt: name=python-gnomekeyring
+- name: install python-gnomekeyring
+ apt: name=python-gnomekeyring
# A mail client needs to send mail. I prefer to send via a local MTA,
# which routes things out via a smarthost.
-- apt: name=postfix
-- template:
+- name: install postfix
+ apt: name=postfix
+
+- name: configure postfix
+ template:
src: main.cf
dest: /etc/postfix/main.cf
notify: restart postfix
# Set up the smarthost relay credentials.
-- template:
+
+- name: set smarthost relay credentials
+ template:
src: sasl_passwd
dest: /etc/postfix/sasl_passwd
mode: 0600
-- shell: |
+
+- name: postmap relay credentials
+ shell: |
sudo postmap /etc/postfix/sasl_passwd