Beginning of roundcube role
parent
9632039df8
commit
1cb9021bd9
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- name: Restart nginx
|
||||
service:
|
||||
name: nginx
|
||||
state: restarted
|
|
@ -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
|
|
@ -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;
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/tail +14
|
||||
{{ ansible_header | comment }}
|
||||
[0m> [38;5;82mRoundcube[0m a été déployé sur cette machine. Voir [38;5;6m/etc/roundcube/[0m.
|
Loading…
Reference in New Issue