Uninstall xdebug
parent
df8b58b46a
commit
d836862837
|
@ -34,8 +34,6 @@
|
||||||
|
|
||||||
- name: INCLUDE | Xdebug
|
- name: INCLUDE | Xdebug
|
||||||
include: xdebug.yml
|
include: xdebug.yml
|
||||||
when: php_install_xdebug
|
|
||||||
|
|
||||||
- name: APT | Install and configure opcache
|
- name: APT | Install and configure opcache
|
||||||
include: opcache.yml
|
include: opcache.yml
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,35 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: APT | Install php-xdebug
|
- block:
|
||||||
apt: >
|
|
||||||
pkg="{{ php_apt_prefix }}xdebug"
|
|
||||||
state=present
|
|
||||||
update_cache=yes
|
|
||||||
cache_valid_time=3600
|
|
||||||
|
|
||||||
- name: SHELL | Get Xdebug version
|
- name: APT | Install php-xdebug
|
||||||
shell: dpkg -l | awk '$2 ~ /xdebug$/ { print $3 }'
|
apt:
|
||||||
changed_when: false
|
pkg: "{{ php_apt_prefix }}xdebug"
|
||||||
register: xdebug_version
|
state: present
|
||||||
|
update_cache: yes
|
||||||
|
cache_valid_time: 3600
|
||||||
|
|
||||||
- name: TEMPLATE | Deploy module configurations
|
- name: SHELL | Get Xdebug version
|
||||||
template: >
|
shell: dpkg -l | awk '$2 ~ /xdebug$/ { print $3 }'
|
||||||
src=etc/__php__/mods-available/xdebug.ini.j2
|
changed_when: false
|
||||||
dest={{ php_mods_dir }}/xdebug.ini
|
register: xdebug_version
|
||||||
owner=root
|
|
||||||
mode=0644
|
- name: TEMPLATE | Deploy module configurations
|
||||||
notify: restart php-fpm
|
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
|
||||||
|
|
||||||
|
- block:
|
||||||
|
|
||||||
|
- name: APT | Uninstall php-xdebug
|
||||||
|
apt:
|
||||||
|
pkg: "{{ php_apt_prefix }}xdebug"
|
||||||
|
state: absent
|
||||||
|
notify: restart php-fpm
|
||||||
|
|
||||||
|
when: not php_install_xdebug
|
||||||
|
|
Loading…
Reference in New Issue