dotfiles/roles/debugger/tasks/php.yaml
Oliver Davies 3dc73400dc feat(role): add debugger
Add `vscode-php-debug` for working with Xdebug and debugging PHP code.
2022-06-20 22:46:30 +01:00

21 lines
425 B
YAML

---
- 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