v0.1 done: docker webhosts, smtp gateway
This commit is contained in:
18
roles/internalsmtp/tasks/postfix.yaml
Normal file
18
roles/internalsmtp/tasks/postfix.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
---
|
||||
- name: "Install Postfix via apt"
|
||||
apt:
|
||||
update_cache: yes
|
||||
state: present
|
||||
name:
|
||||
- postfix
|
||||
|
||||
- name: Install Postfix forwarder config
|
||||
template:
|
||||
src: templates/main.cf
|
||||
dest: /etc/postfix/main.cf
|
||||
|
||||
- name: Restart Postfix
|
||||
service:
|
||||
name: postfix
|
||||
state: restarted
|
||||
enabled: yes
|
Reference in New Issue
Block a user