install vscodium and extensions

This commit is contained in:
Pim Kunis 2022-11-27 20:57:18 +01:00
parent 96de934ade
commit c12fe77a48
3 changed files with 27 additions and 3 deletions

View file

@ -2,3 +2,6 @@ first_name: Pim
last_name: Kunis last_name: Kunis
full_name: "{{ first_name }} {{ last_name }}" full_name: "{{ first_name }} {{ last_name }}"
email: pim@kunis.nl email: pim@kunis.nl
vscodium_extensions:
- shd101wyy.markdown-preview-enhanced
- streetsidesoftware.code-spell-checker

View file

@ -0,0 +1,5 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
codium --list-extensions | awk -v q="\"" -v d="," '{s=(NR==1?s:s d)q $0 q}END{print "[" s "]"}'

View file

@ -1,14 +1,23 @@
- name: Get Signal APT key - name: Get Signal APT key
become: true become: true
ansible.builtin.get_url: get_url:
url: https://updates.signal.org/desktop/apt/keys.asc url: https://updates.signal.org/desktop/apt/keys.asc
dest: /etc/apt/trusted.gpg.d/signal.asc dest: /etc/apt/trusted.gpg.d/signal.asc
- name: Install Signal APT repository - name: Install Signal APT repository
become: true become: true
ansible.builtin.apt_repository: apt_repository:
repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/signal.asc] https://updates.signal.org/desktop/apt xenial main" repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/signal.asc] https://updates.signal.org/desktop/apt xenial main"
state: present state: present
- name: Get VSCodium APT key
become: true
get_url:
url: https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg
dest: /etc/apt/trusted.gpg.d/vscodium-archive-keyring.asc
- name: Install VSCodium APT repository
become: true
apt_repository:
repo: "deb [signed-by=/etc/apt/trusted.gpg.d/vscodium-archive-keyring.asc ] https://download.vscodium.com/debs vscodium main"
state: present
- name: Update repositories - name: Update repositories
become: true become: true
apt: apt:
@ -34,6 +43,7 @@
- gimp - gimp
- signal-desktop - signal-desktop
- nextcloud-desktop - nextcloud-desktop
- codium
# Erlang stuff: https://github.com/asdf-vm/asdf-erlang#before-asdf-install # Erlang stuff: https://github.com/asdf-vm/asdf-erlang#before-asdf-install
- build-essential - build-essential
- autoconf - autoconf
@ -80,3 +90,9 @@
template: template:
src: "{{ role_path }}/templates/Xresources.j2" src: "{{ role_path }}/templates/Xresources.j2"
dest: ~/.config/regolith2/Xresources dest: ~/.config/regolith2/Xresources
- name: Check VSCodium extensions
setup:
fact_path: "{{ role_path }}/facts"
- name: Install VSCodium extensions
shell: "codium --install-extension {{ item }}"
loop: "{{ vscodium_extensions | difference(ansible_facts.ansible_local.vscodium_extensions) }}"