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