瀏覽代碼

make php version configurable

master
父節點
當前提交
adf18359fc
共有 3 個檔案被更改,包括 16 行新增14 行删除
  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 查看文件

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

timezone: UTC

nextcloud_php_version: 7.3

+ 1
- 1
tasks/php-opcache.yml 查看文件

@@ -4,5 +4,5 @@
- name: enable php opcache
template:
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

+ 13
- 13
tasks/setup_Debian.yml 查看文件

@@ -4,22 +4,22 @@
apt:
pkg:
- 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
- sudo
- php-apcu
- php{{nextcloud_php_version}}-apcu
- memcached
- php-memcached
- php{{nextcloud_php_version}}-memcached
- libreoffice
- mariadb-client
state: present


Loading…
取消
儲存