From cbceba6897741f4495fadb70359ed77792c920a1 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Tue, 28 Nov 2017 09:17:19 +0100 Subject: [PATCH] We can't uninstall xdebug, so disabling it! --- tasks/xdebug.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tasks/xdebug.yml b/tasks/xdebug.yml index fdc4913..1e7bcc2 100644 --- a/tasks/xdebug.yml +++ b/tasks/xdebug.yml @@ -26,10 +26,13 @@ - block: - - name: APT | Uninstall php-xdebug - apt: - pkg: "{{ php_apt_prefix }}xdebug" - state: absent - notify: restart php-fpm +# We can't uninstall as simple way. We can uninstall with php7.0-xdebug (virtual package), but removing virtual package doesn't affect real package. +# On Jessie: php5-xdebug, php-xdebug (sury for PHP 5.6/7.0/7.1/7.2), php5-xdebug + php7.0-xdebug (dotdeb) +# On Stretch: php-xdebug + + - name: COMMAND | Disable xdebug package + command: phpdismod -v {{ php_version }} xdebug + args: + removes: "{{ php_etc_dir }}/cli/conf.d/20-xdebug.ini" when: not php_install_xdebug