2015-07-27 23:09:52 +07:00
|
|
|
---
|
|
|
|
|
2017-11-28 14:28:41 +07:00
|
|
|
- block:
|
|
|
|
|
2021-08-31 15:51:29 +07:00
|
|
|
- name: APT | Install xdebug
|
2021-08-31 18:02:57 +07:00
|
|
|
ansible.builtin.apt:
|
2021-08-31 15:51:29 +07:00
|
|
|
pkg: "{{ php_xdebug_package }}"
|
|
|
|
state: present
|
|
|
|
update_cache: true
|
|
|
|
cache_valid_time: 3600
|
|
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
|
|
|
|
- name: PKGNG | Install xdebug
|
2021-09-01 14:33:16 +07:00
|
|
|
community.general.pkgng:
|
2021-08-31 15:51:29 +07:00
|
|
|
name: "{{ php_xdebug_package }}"
|
|
|
|
when: ansible_os_family == 'FreeBSD' and php_xdebug_package is defined
|
|
|
|
|
|
|
|
- name: TEMPLATE | Deploy module configurations
|
2021-08-31 18:02:57 +07:00
|
|
|
ansible.builtin.template:
|
2021-08-31 15:51:29 +07:00
|
|
|
src: "etc/__php__/mods-available/xdebug.ini.j2"
|
|
|
|
dest: "{{ php_mods_dir }}/xdebug.ini"
|
|
|
|
owner: root
|
|
|
|
mode: 0644
|
|
|
|
notify: restart php-fpm
|
2017-11-28 14:28:41 +07:00
|
|
|
|
|
|
|
when: php_install_xdebug
|
|
|
|
|
2018-03-19 03:29:47 +07:00
|
|
|
- block:
|
|
|
|
|
2021-08-31 15:51:29 +07:00
|
|
|
- name: APT | Uninstall xdebug
|
2021-08-31 18:02:57 +07:00
|
|
|
ansible.builtin.apt:
|
2021-08-31 15:51:29 +07:00
|
|
|
pkg: "{{ php_xdebug_package }}"
|
|
|
|
state: absent
|
|
|
|
when: ansible_os_family == 'Debian'
|
|
|
|
|
|
|
|
- name: PKGNG | Uninstall xdebug
|
2021-09-01 14:33:16 +07:00
|
|
|
community.general.pkgng:
|
2021-08-31 15:51:29 +07:00
|
|
|
name: "{{ php_xdebug_package }}"
|
|
|
|
state: absent
|
|
|
|
when: ansible_os_family == 'FreeBSD'
|
2018-03-19 03:29:47 +07:00
|
|
|
|
2017-11-28 14:28:41 +07:00
|
|
|
when: not php_install_xdebug
|