summaryrefslogtreecommitdiffstats
path: root/roles/out/tasks/main.yml
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2014-07-01 14:38:52 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:52:13 +0200
commit170dc68f9275dffb48fbe3f8ebb2183cd7ddf111 (patch)
tree6049724b1bb2d527a337c2f07e14275b9bc40818 /roles/out/tasks/main.yml
parent909e291291414721b7f7bb4aae471a5c187b02c4 (diff)
Outgoing SMTP proxy.
Diffstat (limited to 'roles/out/tasks/main.yml')
-rw-r--r--roles/out/tasks/main.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/out/tasks/main.yml b/roles/out/tasks/main.yml
new file mode 100644
index 0000000..4bf4363
--- /dev/null
+++ b/roles/out/tasks/main.yml
@@ -0,0 +1,17 @@
+- name: Install Postfix
+ apt: pkg=postfix
+
+- name: Configure Postfix
+ template: src=etc/postfix/main.cf.j2
+ dest=/etc/postfix-{{ postfix_instance[inst].name }}/main.cf
+ owner=root group=root
+ mode=0644
+ register: r
+ notify:
+ - Restart Postfix
+
+- name: Start Postfix
+ service: name=postfix state=started
+ when: not r.changed
+
+- meta: flush_handlers