experimental mail transport
This commit is contained in:
parent
e43d4837c3
commit
d52575aa42
12 changed files with 271 additions and 85 deletions
|
@ -222,7 +222,7 @@
|
|||
|
||||
- name: install requirements
|
||||
pip:
|
||||
requirements: /var/www/c3lf-sys3/repo/core/requirements.txt
|
||||
requirements: /var/www/c3lf-sys3/repo/core/requirements.prod.txt
|
||||
virtualenv: /var/www/c3lf-sys3/venv
|
||||
state: present
|
||||
when: git_repo.changed == true
|
||||
|
@ -274,4 +274,35 @@
|
|||
service:
|
||||
name: c3lf-sys3
|
||||
state: started
|
||||
enabled: yes
|
||||
enabled: yes
|
||||
|
||||
- name: add postfix to www-data group
|
||||
user:
|
||||
name: postfix
|
||||
groups: www-data
|
||||
append: yes
|
||||
notify:
|
||||
- restart postfix
|
||||
|
||||
- name: add custom transport config
|
||||
lineinfile:
|
||||
path: /etc/postfix/master.cf
|
||||
line: "c3lf-sys3 unix - n n - - lmtp"
|
||||
state: present
|
||||
create: yes
|
||||
notify:
|
||||
- restart postfix
|
||||
|
||||
- name: configure postfix
|
||||
template:
|
||||
src: templates/postfix.cf.j2
|
||||
dest: /etc/postfix/main.cf
|
||||
notify:
|
||||
- restart postfix
|
||||
|
||||
- name: UFW allow smtp
|
||||
ufw:
|
||||
rule: allow
|
||||
port: 25
|
||||
proto: tcp
|
||||
state: enabled
|
Loading…
Add table
Add a link
Reference in a new issue