diff --git a/README.md b/README.md index 878210a..33a3640 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ Install php5.6 and composer ```yaml vars: - php_enable_xdebug: yes + - php_xdebug_remote_port: 9000 - php_user: vagrant - php_group: vagrant ``` diff --git a/tasks/xdebug.yml b/tasks/xdebug.yml index e024898..768d83c 100644 --- a/tasks/xdebug.yml +++ b/tasks/xdebug.yml @@ -10,8 +10,11 @@ - name: php - set xdebug config template: src: "xdebug.ini.j2" - dest: "/etc/php/5.6/cli/conf.d/20-xdebug.ini" + dest: "{{ item }}" mode: 0644 owner: "root" group: "root" + with_items: + - "/etc/php/5.6/cli/conf.d/20-xdebug.ini" + - "/etc/php/5.6/fpm/conf.d/20-xdebug.ini" when: "php_enable_xdebug|default(False)" diff --git a/templates/xdebug.ini.j2 b/templates/xdebug.ini.j2 index 0f008b1..5b51289 100644 --- a/templates/xdebug.ini.j2 +++ b/templates/xdebug.ini.j2 @@ -6,7 +6,7 @@ zend_extension=xdebug.so xdebug.remote_autostart=on xdebug.remote_enable=on xdebug.remote_handler="dbgp" -xdebug.remote_port=9000 +xdebug.remote_port={{ php_xdebug_remote_port|default(9000) }} xdebug.remote_mode=req xdebug.remote_connect_back=on xdebug.idekey="PHPSTORM"