From adf18359fcb7451737c7d5abe266590b5368fcb9 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Thu, 15 Aug 2019 08:38:21 +0000 Subject: [PATCH] make php version configurable --- defaults/main.yml | 2 ++ tasks/php-opcache.yml | 2 +- tasks/setup_Debian.yml | 26 +++++++++++++------------- 3 files changed, 16 insertions(+), 14 deletions(-) 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