Modify web role for debian stretch.

This commit is contained in:
Markus 2017-07-03 09:49:18 +02:00
parent 313a27e20d
commit fd6abd2dd2
3 changed files with 6 additions and 9 deletions

View File

@ -64,7 +64,7 @@ server {
include fastcgi_params; include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_intercept_errors on; fastcgi_intercept_errors on;
} }
} }

View File

@ -3,8 +3,5 @@
- name: Restart nginx - name: Restart nginx
service: name=nginx state=restarted service: name=nginx state=restarted
- name: Restart php5-fpm
service: name=php5-fpm state=restarted
- name: Run certmgr - name: Run certmgr
command: /opt/acertmgr/acertmgr.py command: /opt/acertmgr/acertmgr.py

View File

@ -3,9 +3,9 @@
- name: Install dependencies - name: Install dependencies
apt: name={{ item }} apt: name={{ item }}
with_items: with_items:
- php5-fpm - php7.0-fpm
- php5-ldap - php7.0-ldap
- php5-sqlite - php7.0-sqlite3
- name: Create vhost directory - name: Create vhost directory
file: path=/var/www/kitchen state=directory owner=www-data group=www-data file: path=/var/www/kitchen state=directory owner=www-data group=www-data
@ -30,5 +30,5 @@
file: src=/etc/nginx/sites-available/www dest=/etc/nginx/sites-enabled/www state=link file: src=/etc/nginx/sites-available/www dest=/etc/nginx/sites-enabled/www state=link
notify: Restart nginx notify: Restart nginx
- name: Start php5-fpm - name: Start php7.0-fpm
service: name=php5-fpm state=started enabled=yes service: name=php7.0-fpm state=started enabled=yes