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
full_name: "{{ first_name }} {{ last_name }}"
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
become: true
ansible.builtin.get_url:
get_url:
url: https://updates.signal.org/desktop/apt/keys.asc
dest: /etc/apt/trusted.gpg.d/signal.asc
- name: Install Signal APT repository
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"
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
become: true
apt:
@ -34,6 +43,7 @@
- gimp
- signal-desktop
- nextcloud-desktop
- codium
# Erlang stuff: https://github.com/asdf-vm/asdf-erlang#before-asdf-install
- build-essential
- autoconf
@ -80,3 +90,9 @@
template:
src: "{{ role_path }}/templates/Xresources.j2"
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) }}"