ansible-php/tasks/xdebug.yml

22 lines
492 B
YAML
Raw Permalink Normal View History

2015-07-27 23:09:52 +07:00
---
- name: APT | Install php-xdebug
2016-02-27 18:38:34 +07:00
apt: >
pkg="{{ php_apt_prefix }}xdebug"
state=latest
update_cache=yes
cache_valid_time=3600
2015-07-27 23:09:52 +07:00
- name: SHELL | Get Xdebug version
2016-02-27 18:38:34 +07:00
shell: dpkg -l | awk '$2 ~ /xdebug$/ { print $3 }'
2015-07-27 23:09:52 +07:00
changed_when: false
register: xdebug_version
- name: TEMPLATE | Deploy module configurations
2016-02-27 18:38:34 +07:00
template: >
src=etc/__php__/mods-available/xdebug.ini.j2
dest={{ php_mods_dir }}/xdebug.ini
owner=root
mode=0644
2015-07-27 23:09:52 +07:00
notify: restart php-fpm