This repository has been archived on 2024-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
setup/roles/vscodium/tasks/main.yml

29 lines
903 B
YAML
Raw Normal View History

2022-12-02 19:10:38 +00:00
- 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
2023-02-20 20:49:55 +00:00
tags: update
2022-12-02 19:10:38 +00:00
- 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"
2022-12-20 16:20:36 +00:00
register: apt_repository
2023-02-20 20:49:55 +00:00
tags: update
2022-12-20 16:20:36 +00:00
- name: Update APT cache
2022-12-20 17:31:17 +00:00
become: true
2022-12-20 16:20:36 +00:00
apt:
update_cache: true
when: apt_repository.changed
2023-02-20 20:49:55 +00:00
tags: update
2022-12-02 19:10:38 +00:00
- name: Install VSCodium
become: true
apt:
2022-12-19 22:27:26 +00:00
name: codium
2022-12-02 19:10:38 +00:00
- 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) }}"