-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add extra xdebug.ini variables, remove ability to enable xdebug
- Loading branch information
Showing
5 changed files
with
41 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
xdebug_enable_mod: false | ||
# The version of the xdebug package to install (ie. php7.2-xdebug) | ||
xdebug_php_version: 7.2 | ||
|
||
# xdbebug.ini settings | ||
# see: https://xdebug.org/docs/all_settings | ||
|
||
xdebug_conf_max_nesting_level: 256 | ||
xdebug_conf_remote_port: 9000 | ||
xdebug_conf_idekey: PHPSTORM | ||
|
||
# Start xdebug on every requset, regardless of the GET/POST variable | ||
xdebug_remote_autostart: 0 | ||
|
||
# Connect to the client that sent the request | ||
xdebug_conf_remote_connect_back: 0 | ||
|
||
# Connect to the specified host (overidden by remote_connect_back) | ||
# 10.0.2.2 is the default IP address virtualbox assigns to the host | ||
xdebug_remote_enable: 0 | ||
xdebug_remote_host: 10.0.2.2 | ||
xdebug_conf_remote_port: 9000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
--- | ||
- name: install php xdebug | ||
apt: | ||
pkg: php-xdebug | ||
pkg: php{{ xdebug_php_version }}-xdebug | ||
state: present | ||
|
||
- name: configure xdebug | ||
template: | ||
src: xdebug.ini.j2 | ||
dest: /etc/php/{{ php_version }}/mods-available/xdebug.ini | ||
|
||
- name: enable xdebug module | ||
command: phpenmod xdbeug | ||
when: xdebug_enable_mod == true | ||
notify: | ||
- restart php-fpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters