2023-08-27 11:43:02 +02:00
|
|
|
---
|
|
|
|
- name: Create directories for VSCode
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
mode: 0740
|
|
|
|
loop:
|
|
|
|
- ~/.local/bin
|
|
|
|
- ~/.local/share
|
|
|
|
- "$HOME/.config/Code - Insiders/User"
|
|
|
|
|
|
|
|
- name: Install VSCode script
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: files/update.sh
|
|
|
|
dest: ~/.local/bin/code-update.sh
|
|
|
|
mode: 0640
|
|
|
|
|
|
|
|
- name: Create app info for VSCode
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: files/code{{ item }}.desktop
|
|
|
|
dest: ~/.local/share/visual-studio-code-insiders{{ item }}.desktop
|
|
|
|
mode: 0640
|
|
|
|
loop:
|
|
|
|
- ""
|
|
|
|
- "-url-handler"
|
|
|
|
|
|
|
|
- name: Install VSCode configuration
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: files/{{ item }}.json
|
|
|
|
dest: "~/.config/Code - Insiders/User/{{ item }}.json"
|
|
|
|
mode: 0640
|
|
|
|
loop:
|
|
|
|
- settings
|
|
|
|
- keybindings
|
|
|
|
|
|
|
|
- name: Install VSCode
|
|
|
|
ansible.builtin.command:
|
2023-09-16 23:09:06 +02:00
|
|
|
cmd: bash /home/{{ target_user }}/.local/bin/code-update.sh
|
2023-08-27 11:43:02 +02:00
|
|
|
creates: /opt/VSCode-linux-x64
|
|
|
|
become: true
|
2023-09-02 17:17:05 +02:00
|
|
|
tags: install
|