Beginning of roundcube role

certbot_on_virtu
Alexandre Iooss 2020-07-30 19:46:30 +02:00
parent 9632039df8
commit 1cb9021bd9
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
4 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
- name: Restart nginx
service:
name: nginx
state: restarted

View File

@ -0,0 +1,29 @@
---
- name: Install Roundcube
apt:
update_cache: true
name:
- nginx
- roundcube
register: apt_result
retries: 3
until: apt_result is succeeded
- name: Copy NGINX site
template:
src: nginx/roundcube.j2
dest: /etc/nginx/sites-available/roundcube
notify: Restart nginx
- name: Activate NGINX site
file:
src: /etc/nginx/sites-available/roundcube
dest: /etc/nginx/sites-enabled/roundcube
state: link
notify: Restart nginx
- name: Indicate role in motd
template:
src: update-motd.d/05-service.j2
dest: /etc/update-motd.d/05-roundcube
mode: 0755

View File

@ -0,0 +1,26 @@
{{ ansible_header | comment }}
server {
listen roundcube.adm.crans.org:80;
listen [2a0c:700:0:2:6809:acff:fe67:47e6]:80;
server_name roundcube.adm.crans.org;
root /var/lib/roundcube;
index index.php index.htm index.html;
try_files $uri $uri/ /index.php?q=$uri&$args;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
include fastcgi_params;
}
set_real_ip_from 10.231.136.0/24;
set_real_ip_from 2a0c:700:0:2::/64;
real_ip_header P-Real-Ip;
}

View File

@ -0,0 +1,3 @@
#!/usr/bin/tail +14
{{ ansible_header | comment }}
> Roundcube a été déployé sur cette machine. Voir /etc/roundcube/.