Last change
on this file since 3868 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
|
Rev | Line | |
---|
[3655] | 1 | ---
|
---|
| 2 |
|
---|
| 3 | - name: Check that postfix is installed
|
---|
[3795] | 4 | urpmi: name=postfix state=installed no_recommends=yes
|
---|
[3655] | 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
|
---|
[3674] | 21 | service: name=postfix state=started enabled=yes
|
---|
[3655] | 22 | tags: smtp
|
---|
Note:
See
TracBrowser
for help on using the repository browser.