Last change
on this file since 3801 was 3795, checked in by Bruno Cornec, 6 months ago |
Untag v3.3.0 never really published in the past - will start from here
|
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=started enabled=yes
|
---|
22 | tags: smtp
|
---|
Note:
See
TracBrowser
for help on using the repository browser.