From 170dc68f9275dffb48fbe3f8ebb2183cd7ddf111 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 1 Jul 2014 14:38:52 +0200 Subject: Outgoing SMTP proxy. --- roles/out/tasks/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 roles/out/tasks/main.yml (limited to 'roles/out/tasks') 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 -- cgit v1.2.3