feat(role): add debugger
Add `vscode-php-debug` for working with Xdebug and debugging PHP code.
This commit is contained in:
parent
6fba154cdf
commit
3dc73400dc
|
@ -27,3 +27,4 @@ default_roles:
|
|||
- tmuxinator
|
||||
- zsh
|
||||
- zsh-antigen
|
||||
- debugger
|
||||
|
|
4
roles/debugger/tasks/main.yaml
Normal file
4
roles/debugger/tasks/main.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
- include_tasks: php.yaml
|
||||
tags:
|
||||
- debugger
|
20
roles/debugger/tasks/php.yaml
Normal file
20
roles/debugger/tasks/php.yaml
Normal 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
|
Loading…
Reference in a new issue