dotfiles/roles/editor_vscode/tasks/main.yml
Matej Focko 14576e842e
fix(editor_vscode): branch by package manager
When installing VSCode via RPM or DEB package, branch by the package
manager rather than the distribution.

Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-12-29 17:48:16 +01:00

19 lines
472 B
YAML

---
- name: Install VSCode
ansible.builtin.include_tasks: "install_{{ ansible_facts.pkg_mgr }}.yml"
tags: install
- name: Create directories for VSCode
ansible.builtin.file:
path: "$HOME/.config/Code - Insiders/User"
state: directory
mode: 0740
- name: Install VSCode configuration
ansible.builtin.copy:
src: files/{{ item }}.json
dest: "~/.config/Code - Insiders/User/{{ item }}.json"
mode: 0640
loop:
- settings
- keybindings