ansible-php/tasks/xdebug.yml

45 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2015-07-27 23:09:52 +07:00
---
- name: BLOCK | Uninstall xdebug
when: php_install_xdebug
block:
2017-11-28 14:28:41 +07:00
- name: APT | Install xdebug
ansible.builtin.apt:
pkg: "{{ php_xdebug_package }}"
state: present
update_cache: true
cache_valid_time: 3600
install_recommends: false
when: ansible_os_family == 'Debian'
- name: PKGNG | Install xdebug
community.general.pkgng:
name: "{{ php_xdebug_package }}"
when: ansible_os_family == 'FreeBSD' and php_xdebug_package is defined
- name: TEMPLATE | Deploy module configurations
ansible.builtin.template:
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
- name: BLOCK | Uninstall xdebug
when: not php_install_xdebug
block:
2018-03-19 03:29:47 +07:00
- name: APT | Uninstall xdebug
ansible.builtin.apt:
pkg: "{{ php_xdebug_package }}"
state: absent
when: ansible_os_family == 'Debian'
- name: PKGNG | Uninstall xdebug
community.general.pkgng:
name: "{{ php_xdebug_package }}"
state: absent
when: ansible_os_family == 'FreeBSD'