Add task in postfix for packmail and index.hml + vhost directive for mailgraph
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
This commit is contained in:
parent
8cbe837147
commit
8ec159c444
|
@ -68,3 +68,10 @@
|
||||||
insertafter: "[apache_*]"
|
insertafter: "[apache_*]"
|
||||||
create: no
|
create: no
|
||||||
notify: restart munin-node
|
notify: restart munin-node
|
||||||
|
|
||||||
|
- name: add mailgraph URL in index.html
|
||||||
|
lineinfile:
|
||||||
|
dest: /var/www/index.html
|
||||||
|
state: present
|
||||||
|
line: ' <li><a href="/mailgraph">Stats Mail</a></li>'
|
||||||
|
insertbefore: "</ul>"
|
||||||
|
|
|
@ -35,6 +35,15 @@
|
||||||
Include /etc/apache2/ipaddr_whitelist.conf
|
Include /etc/apache2/ipaddr_whitelist.conf
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
# Mailgraph configuration
|
||||||
|
Alias /mailgraph /usr/share/mailgraph
|
||||||
|
<Directory /usr/share/mailgraph>
|
||||||
|
DirectoryIndex mailgraph.cgi
|
||||||
|
Require all granted
|
||||||
|
Options +FollowSymLinks +ExecCGI
|
||||||
|
AddHandler cgi-script .cgi
|
||||||
|
</Directory>
|
||||||
|
|
||||||
CustomLog /var/log/apache2/access.log vhost_combined
|
CustomLog /var/log/apache2/access.log vhost_combined
|
||||||
ErrorLog /var/log/apache2/error.log
|
ErrorLog /var/log/apache2/error.log
|
||||||
LogLevel warn
|
LogLevel warn
|
||||||
|
@ -118,6 +127,15 @@
|
||||||
Include /etc/apache2/ipaddr_whitelist.conf
|
Include /etc/apache2/ipaddr_whitelist.conf
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
|
# Mailgraph configuration
|
||||||
|
Alias /mailgraph /usr/share/mailgraph
|
||||||
|
<Directory /usr/share/mailgraph>
|
||||||
|
DirectoryIndex mailgraph.cgi
|
||||||
|
Require all granted
|
||||||
|
Options +FollowSymLinks +ExecCGI
|
||||||
|
AddHandler cgi-script .cgi
|
||||||
|
</Directory>
|
||||||
|
|
||||||
# BEGIN phpMyAdmin section
|
# BEGIN phpMyAdmin section
|
||||||
# END phpMyAdmin section
|
# END phpMyAdmin section
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,20 @@
|
||||||
tags:
|
tags:
|
||||||
- postfix
|
- postfix
|
||||||
|
|
||||||
|
- name: make /var/lib/mailgraph accessible by www-data
|
||||||
|
file:
|
||||||
|
path: "/var/lib/mailgraph"
|
||||||
|
state: directory
|
||||||
|
owner: www-data
|
||||||
|
group: www-data
|
||||||
|
mode: '0755'
|
||||||
|
|
||||||
|
- name: make sure a service Mailgraph is running
|
||||||
|
systemd:
|
||||||
|
name: mailgraph.service
|
||||||
|
state: started
|
||||||
|
enabled: true
|
||||||
|
|
||||||
- name: create packmail main.cf
|
- name: create packmail main.cf
|
||||||
template:
|
template:
|
||||||
src: packmail_main.cf.j2
|
src: packmail_main.cf.j2
|
||||||
|
|
Loading…
Reference in a new issue