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
3 changed files with 25 additions and 0 deletions
|
@ -27,3 +27,4 @@ default_roles:
|
||||||
- tmuxinator
|
- tmuxinator
|
||||||
- zsh
|
- zsh
|
||||||
- zsh-antigen
|
- 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…
Add table
Add a link
Reference in a new issue