Skip to content

Commit

Permalink
Improve feedback of Xdebug-related tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
damiendart committed Dec 18, 2023
1 parent c5372a0 commit 74b9b3a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions roles/webserver/tasks/xdebug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
- name: 'Run Xdebug-related tasks'
when: webserver__xdebug_versions | length > 0
block:
- name: 'Ensure Xdebug is installed'
- name: 'Ensure Xdebug is installed for all available versions of PHP'
ansible.builtin.apt:
force_apt_get: true
name: "{{ webserver__xdebug_versions | map('regex_replace', '^(.*)$', 'php\\1-xdebug') }}"
name: '{{ item }}'
state: 'present'
loop: "{{ webserver__xdebug_versions | map('regex_replace', '^(.*)$', 'php\\1-xdebug') }}"

- name: 'Ensure custom Xdebug configuration file for PHP-FPM exists'
- name: 'Ensure custom Xdebug configuration file exists for all available versions of PHP-FPM'
ansible.builtin.template:
dest: '/etc/php/{{ item }}/fpm/conf.d/99-xdebug.ini'
group: 'root'
Expand Down

0 comments on commit 74b9b3a

Please sign in to comment.