feat(role): add debugger

Add `vscode-php-debug` for working with Xdebug and debugging PHP code.
This commit is contained in:
Oliver Davies 2022-06-20 22:36:16 +01:00
parent 6fba154cdf
commit 3dc73400dc
3 changed files with 25 additions and 0 deletions

View file

@ -27,3 +27,4 @@ default_roles:
- tmuxinator
- zsh
- zsh-antigen
- debugger

View file

@ -0,0 +1,4 @@
---
- include_tasks: php.yaml
tags:
- debugger

View file

@ -0,0 +1,20 @@
---
- name: Clone
ansible.builtin.git:
depth: 1
dest: "{{ ansible_user_dir }}/build/vscode-php-debug"
repo: https://github.com/xdebug/vscode-php-debug.git
single_branch: yes
register: clone
tags:
- debugger
- name: Install
ansible.builtin.command: |
npm install
npm run build
args:
chdir: "{{ ansible_user_dir }}/build/vscode-php-debug"
when: clone.changed
tags:
- debugger