From f8daa11de15597fd2cfb6861b21467f1b6808c70 Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Mon, 20 May 2019 21:35:58 +0200 Subject: [PATCH] nextcloud: first step towards handling php from ansible again --- roles/nextcloud/tasks/main.yml | 45 +++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/roles/nextcloud/tasks/main.yml b/roles/nextcloud/tasks/main.yml index 900c0bf..8d6ea2e 100644 --- a/roles/nextcloud/tasks/main.yml +++ b/roles/nextcloud/tasks/main.yml @@ -1,19 +1,42 @@ --- +- name: Enable https for apt + apt: name=apt-transport-https + +- name: Enable sury php apt-key + apt_key: url='https://packages.sury.org/php/apt.gpg' + +- name: Enable sury php repository + apt_repository: repo="deb https://packages.sury.org/php/ stretch main" + - name: Install packages apt: name={{ item }} with_items: -# FIXME currently PHP handled out of ansible -# - php7.0-apcu -# - php7.0-curl -# - php7.0-fpm -# - php7.0-gd -# - php7.0-ldap -# - php7.0-mbstring -# - php7.0-pgsql -# - php7.0-xml -# - php7.0-zip -# - php-redis + - php-redis + - php7.3 + - php7.3-bcmath + - php7.3-bz2 + - php7.3-cli + - php7.3-common + - php7.3-curl + - php7.3-dev + - php7.3-fpm + - php7.3-gd + - php7.3-imap + - php7.3-intl + - php7.3-json + - php7.3-ldap + - php7.3-mbstring + - php7.3-mysql + - php7.3-opcache + - php7.3-pgsql + - php7.3-readline + - php7.3-soap + - php7.3-sqlite3 + - php7.3-tidy + - php7.3-xml + - php7.3-xmlrpc + - php7.3-zip - postgresql - python-psycopg2