mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-04-09 12:42:10 +07:00
Support many php versions (php7) + drop wheezy support
This commit is contained in:
@@ -3,10 +3,18 @@
|
||||
- name: APT_REPOSITORY | Install backports
|
||||
apt_repository: repo='deb http://httpredir.debian.org/debian {{ ansible_distribution_release }}-backports main' state=present
|
||||
|
||||
- block:
|
||||
- name: APT | Install DotDeb key
|
||||
apt_key: url='http://www.dotdeb.org/dotdeb.gpg' state=present
|
||||
- name: APT_REPOSITORY | Install dotdeb (PHP 7)
|
||||
apt_repository: repo='deb http://packages.dotdeb.org {{ ansible_distribution_release }} all' state=present
|
||||
when: ansible_distribution_release == 'jessie'
|
||||
|
||||
- name: APT | Install needed packages
|
||||
apt: pkg={{ item }} update_cache=yes cache_valid_time=3600 state=present
|
||||
with_items:
|
||||
- php5-fpm
|
||||
- php7.0-fpm
|
||||
- curl
|
||||
- fcgiwrap
|
||||
|
||||
@@ -19,4 +27,5 @@
|
||||
register: sf
|
||||
with_items:
|
||||
- php5-fpm
|
||||
- php7.0-fpm
|
||||
- fcgiwrap
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
set_fact:
|
||||
nginx_pkgng_package: 'nginx-devel'
|
||||
nginx_user: 'www'
|
||||
nginx_php_sockets:
|
||||
nginx_php7: false
|
||||
nginx_php5_sockets:
|
||||
- host: '127.0.0.1'
|
||||
port: 9000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user