source: MondoRescue/branches/3.3/ansible/roles/smtp/tasks/main.yml@ 3656

Last change on this file since 3656 was 3656, checked in by Bruno Cornec, 7 years ago

More services up and runnig for the MondoRescue server

File size: 676 bytes
Line 
1---
2
3- name: Check that postfix is installed
4 urpmi: name=postfix state=installed no-recommends=yes
5 tags: smtp
6
7- name: Copy postfix data files
8 copy: src={{ item }} dest=/etc/postfix/{{ item | basename }} owner=root group=root mode=0644 backup=yes
9 with_fileglob: [ 'files/{{ smtp_role }}/*' ]
10 notify:
11 - check and restart postfix
12 tags: smtp
13
14- name: Check that postfix is configured
15 template: src='templates/main.cf.j2' dest='/etc/postfix/main.cf' owner=root group=root mode=0644 backup=yes
16 notify:
17 - check and restart postfix
18 tags: smtp
19
20- name: Check that postfix is running and enabled
21 service: name=postfix state=running enabled=yes
22 tags: smtp
Note: See TracBrowser for help on using the repository browser.