gotmax23.vscodium

Ansible Role: vscodium

This Ansible role installs Vscodium on Linux.

Beta Alert

This role is in beta and should not be used in production. Changes that break compatibility may happen with future updates, so please read the release notes.

Requirements

This role needs some additional collections that are not part of ansible-core.

To install the required collections, create a requirements.yml file with this content:

---
collections:
  - name: community.general

If you're using ansible-base/ansible-core version 2.10 or later, run:

ansible-galaxy install -r requirements.yml

For Ansible 2.9, run:

ansible-galaxy collection install -r requirements.yml

Role Variables

Installation Methods

This role installs codium from the main apt/rpm repository if available. On Archlinux, it installs the code package from official repositories.


Here are the role variables and their default values:

---
# Options:
# - `present` makes sure Vscodium is installed.
# - `absent` makes sure Vscodium is not installed.
vscodium_state: present

# Repository URL.
vscodium_mirror: https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo

# Checks if the repository's signing key is valid before importing it.
vscodium_check_key_fingerprint: true

Example Playbook

---
- name: Install Vscodium
  hosts: all
  become: true

  tasks:
    - name: Update apt cache
      when: ansible_pkg_mgr == "apt"
      ansible.builtin.apt:
        update_cache: true
        cache_valid_time: 3600

    - name: Install Vscodium
      ansible.builtin.include_role:
        name: "gotmax23.vscodium"

Compatibility

This role has been tested with the latest version of ansible-core and the collections from Ansible Galaxy. This is the officially supported version. Other versions may have limited support.

This role works with these distributions:

Distro Versions
Archlinux any
Debian buster, bullseye, bookworm
EL 8
Fedora 34, 35, 36
OpenSUSE 15.3, tumbleweed
Ubuntu bionic, focal

License

MIT License

Author

Maxwell G (@gotmax23)

Informazioni sul progetto

Ansible role that installs vscodium on Linux.

Installa
ansible-galaxy install gotmax23.vscodium
Licenza
mit
Download
97
Proprietario
@gotmax:matrix.org | Fedora developer. Ansible Community Steering Committee member. Pythonista. | See my sr.ht profile for my current code.