Browse Source

make php version configurable

master
parent
commit
adf18359fc
3 changed files with 16 additions and 14 deletions
  1. +2
    -0
      defaults/main.yml
  2. +1
    -1
      tasks/php-opcache.yml
  3. +13
    -13
      tasks/setup_Debian.yml

+ 2
- 0
defaults/main.yml View File

@@ -29,3 +29,5 @@ nextcloud_server_names:
nextcloud_force_downgrade: false nextcloud_force_downgrade: false


timezone: UTC timezone: UTC

nextcloud_php_version: 7.3

+ 1
- 1
tasks/php-opcache.yml View File

@@ -4,5 +4,5 @@
- name: enable php opcache - name: enable php opcache
template: template:
src: php-opcache.conf.j2 src: php-opcache.conf.j2
dest: /etc/php/7.0/apache2/conf.d/opcache.ini
dest: /etc/php/{{nextcloud_php_version}}/apache2/conf.d/opcache.ini
notify: restart apache2 notify: restart apache2

+ 13
- 13
tasks/setup_Debian.yml View File

@@ -4,22 +4,22 @@
apt: apt:
pkg: pkg:
- apache2 - apache2
- php-cli
- libapache2-mod-php
- php-xml
- php-gd
- php-json
- php-mbstring
- php-zip
- php-mysql
- php-curl
- php-intl
- php-imagick
- php{{nextcloud_php_version}}-cli
- libapache2-mod-php{{nextcloud_php_version}}
- php{{nextcloud_php_version}}-xml
- php{{nextcloud_php_version}}-gd
- php{{nextcloud_php_version}}-json
- php{{nextcloud_php_version}}-mbstring
- php{{nextcloud_php_version}}-zip
- php{{nextcloud_php_version}}-mysql
- php{{nextcloud_php_version}}-curl
- php{{nextcloud_php_version}}-intl
- php{{nextcloud_php_version}}-imagick
- ca-certificates - ca-certificates
- sudo - sudo
- php-apcu
- php{{nextcloud_php_version}}-apcu
- memcached - memcached
- php-memcached
- php{{nextcloud_php_version}}-memcached
- libreoffice - libreoffice
- mariadb-client - mariadb-client
state: present state: present


Loading…
Cancel
Save