dotfiles/roles/debugger/tasks/php.yaml
Oliver Davies 735ce9baf1 fix(debugger): overwrite local modifications
Ignore local changes made within the `vscode-php-debug` directory due to
the Install task.
2022-07-08 10:39:29 +01:00

23 lines
505 B
YAML

---
- name: Clone
ansible.builtin.git:
depth: 1
dest: "{{ ansible_user_dir }}/build/vscode-php-debug"
force: yes
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"
creates: "{{ ansible_user_dir }}/build/vscode-php-debug/out"
when: clone.changed
tags:
- debugger