ansible-php/tasks/xdebug.yml

27 lines
565 B
YAML
Raw Normal View History

2015-07-27 23:09:52 +07:00
---
2017-11-28 14:28:41 +07:00
- block:
- name: APT | Install php-xdebug
apt:
2018-03-18 23:28:57 +07:00
pkg: "{{ php_package_prefix }}xdebug"
2017-11-28 14:28:41 +07:00
state: present
update_cache: yes
cache_valid_time: 3600
- name: TEMPLATE | Deploy module configurations
template:
src: "etc/__php__/mods-available/xdebug.ini.j2"
dest: "{{ php_mods_dir }}/xdebug.ini"
owner: root
mode: 0644
notify: restart php-fpm
when: php_install_xdebug
2018-03-18 23:28:57 +07:00
- name: APT | Uninstall php-xdebug
apt:
pkg: "{{ php_package_prefix }}xdebug"
state: absent
2017-11-28 14:28:41 +07:00
when: not php_install_xdebug