diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-02-23 11:46:23 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-02-23 11:46:23 +0200 |
commit | 3b9b5309104d45fd7c75f37130a63f3f0c760dfc (patch) | |
tree | 8afa2c5747ee453fabe9ee6e36621a74d441c18d | |
parent | fb7ce66512e496cedc1cc8604ed8ae38c5a90fe0 (diff) | |
download | ansibleness-3b9b5309104d45fd7c75f37130a63f3f0c760dfc.tar.gz |
Add: mail-client role to exolobe1
Also, drop MTA configuration from mail-client, there's another role
for that already.
-rw-r--r-- | ansible/exolobe1.yml | 5 | ||||
-rw-r--r-- | ansible/roles/mail-client/tasks/main.yml | 34 |
2 files changed, 3 insertions, 36 deletions
diff --git a/ansible/exolobe1.yml b/ansible/exolobe1.yml index 2f57947..76d6cca 100644 --- a/ansible/exolobe1.yml +++ b/ansible/exolobe1.yml @@ -11,6 +11,7 @@ - gnome-system - annexed - smarthost-client + - mail-client - journal-workstation - apache_server - writing-dev-env @@ -25,7 +26,7 @@ - ansible vars: hostname: exolobe1 - debian_codename: unstable + debian_codename: buster ansible_ssh_host: exolobe1 mailname: exolobe1.liw.fi @@ -45,7 +46,7 @@ sources_lists: - repo: | - deb http://deb.debian.org/debian unstable main contrib non-free + deb http://deb.debian.org/debian buster main contrib non-free - repo: | deb http://code.liw.fi/debian unstable main diff --git a/ansible/roles/mail-client/tasks/main.yml b/ansible/roles/mail-client/tasks/main.yml index 3af3106..d9effed 100644 --- a/ansible/roles/mail-client/tasks/main.yml +++ b/ansible/roles/mail-client/tasks/main.yml @@ -7,38 +7,4 @@ - 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. - -- name: install postfix - apt: name=postfix - -- name: configure postfix - template: - src: main.cf - dest: /etc/postfix/main.cf - notify: restart postfix - -- name: set mailname - copy: - content: "{{ mailname }}\n" - dest: /etc/mailname - owner: root - group: root - mode: 0644 - -# Set up the smarthost relay credentials. - -- name: set smarthost relay credentials - template: - src: sasl_passwd - dest: /etc/postfix/sasl_passwd - mode: 0600 - -- name: postmap relay credentials - shell: | - postmap /etc/postfix/sasl_passwd |