25 lines
858 B
YAML
25 lines
858 B
YAML
- 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"
|
|
register: apt_repository
|
|
- name: Update APT cache
|
|
become: true
|
|
apt:
|
|
update_cache: true
|
|
when: apt_repository.changed
|
|
- name: Install VSCodium
|
|
become: true
|
|
apt:
|
|
name: codium
|
|
- 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) }}"
|