28 lines
611 B
YAML
28 lines
611 B
YAML
- name: package
|
|
package:
|
|
name:
|
|
- postgresql
|
|
- postfixadmin
|
|
|
|
- name: nginx local
|
|
notify: reload nginx
|
|
when: mailserver_postfixadmin_domain == ""
|
|
template:
|
|
src: postfixadmin-local.nginx
|
|
dest: /etc/nginx/local.d/postfixadmin.act
|
|
|
|
- name: nginx domain
|
|
notify: reload nginx
|
|
when: mailserver_postfixadmin_domain != ""
|
|
template:
|
|
src: postfixadmin-domain.nginx
|
|
dest: /etc/nginx/sites.d/postfixadmin.act
|
|
|
|
- name: allow access php to postfixadmin.conf
|
|
file:
|
|
path: "/etc/webapps/postfixadmin/{{ item }}"
|
|
group: http
|
|
with_items:
|
|
- config.inc.php
|
|
- config.local.php
|