diff --git a/tasks/configure.yml b/tasks/configure.yml
index f915d921e7e113695434a6ddcf38990def68d8e8..08c663bcbd878fc20c0f8f02f8a0ae279bed8bbc 100644
--- a/tasks/configure.yml
+++ b/tasks/configure.yml
@@ -21,7 +21,7 @@
     content: "export PATH=${PATH}:{{ composer_home_path }}/vendor/bin\n"
 
 - name: "Disable XDebug for CLI"
-  command: '{{ (php_version|default("5.5") == "7") | ternary("phpdismod", "php5dismod") }} -s cli xdebug'
+  command: '{{ (php_version_main|default("7") == "7") | ternary("phpdismod", "php5dismod") }} -s cli xdebug'
   tags: 'update'
 
 - name: "Global Config Composer"