summaryrefslogtreecommitdiff
path: root/ansible/roles/mail-client
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-05-13 12:23:56 +0300
committerLars Wirzenius <liw@liw.fi>2018-05-13 12:23:56 +0300
commita0bb24f0dede033302f362d0bdb86cfcf788ae76 (patch)
tree88bcd22983781ffdb5c4cb01202b1a8f2f49062b /ansible/roles/mail-client
parent5c46de1ee8250bd9d483628848885f68e0ddc01a (diff)
downloadansibleness-a0bb24f0dede033302f362d0bdb86cfcf788ae76.tar.gz
Add: set /etc/mailname for mail clients.
Diffstat (limited to 'ansible/roles/mail-client')
-rw-r--r--ansible/roles/mail-client/tasks/main.yml55
1 files changed, 20 insertions, 35 deletions
diff --git a/ansible/roles/mail-client/tasks/main.yml b/ansible/roles/mail-client/tasks/main.yml
index 2982628..0b7badb 100644
--- a/ansible/roles/mail-client/tasks/main.yml
+++ b/ansible/roles/mail-client/tasks/main.yml
@@ -1,38 +1,15 @@
-- 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
-
-- name: install icedove
- apt: name=icedove
-
-# 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.
-- name: install python-icalendar
- apt: name=python-icalendar
-
-# My offlineimap config requires the gnomekeyring Python module.
-- name: install python-gnomekeyring
- apt: name=python-gnomekeyring
+- name: "install email stuff"
+ apt:
+ name: "{{ item }}"
+ with_items:
+ - mutt
+ - notmuch
+ - notmuch-mutt
+ - offlineimap
+ - procmail
+ - wotsap
+ - clab
+ - urlview
# A mail client needs to send mail. I prefer to send via a local MTA,
# which routes things out via a smarthost.
@@ -46,6 +23,14 @@
dest: /etc/postfix/main.cf
notify: restart postfix
+- name: set mailname
+ copy:
+ content: "{{ mailname }}"
+ dest: /etc/mailname
+ owner: root
+ group: root
+ mode: 0644
+
# Set up the smarthost relay credentials.
- name: set smarthost relay credentials