diff --git a/defaults/main.yml b/defaults/main.yml index 35c20c9..adbf47f 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -29,3 +29,5 @@ nextcloud_server_names: nextcloud_force_downgrade: false timezone: UTC + +nextcloud_php_version: 7.3 diff --git a/tasks/php-opcache.yml b/tasks/php-opcache.yml index f81c6d5..9a2a799 100644 --- a/tasks/php-opcache.yml +++ b/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 diff --git a/tasks/setup_Debian.yml b/tasks/setup_Debian.yml index 3fe7eee..dba4c6c 100644 --- a/tasks/setup_Debian.yml +++ b/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