From 3a461856552a6c79b1ad5ecfed821b4149c51046 Mon Sep 17 00:00:00 2001 From: George Hunt Date: Sat, 28 Apr 2018 18:50:14 +0000 Subject: [PATCH] do not change what is not tested --- roles/nextcloud/tasks/main.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/roles/nextcloud/tasks/main.yml b/roles/nextcloud/tasks/main.yml index ece214e7d..c1e24c4be 100644 --- a/roles/nextcloud/tasks/main.yml +++ b/roles/nextcloud/tasks/main.yml @@ -56,9 +56,14 @@ - "php{{ php_version }}-mysql" - "php{{ php_version }}-curl" - "php{{ php_version }}-intl" - # - "php{{ php_version }}-mcrypt" - - "mcrypt" - when: is_debuntu + - "php{{ php_version }}-mcrypt" + when: is_debuntu and not is_ubuntu_18 + +- name: In Ubuntu 18, php dropped mcrypt + package: + name: mcrypt + state: present + when: is_ubuntu_18 # we need to install the rpm in order to get the dependencies # but we only need to do this the first time