Initial
This commit is contained in:
40
roles/workstation/tasks/software/vscodium.yml
Normal file
40
roles/workstation/tasks/software/vscodium.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
- name: software | vscodium | add repository key
|
||||
apt_key:
|
||||
url: https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg
|
||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
|
||||
- name: software | vscodium | add repository
|
||||
apt_repository:
|
||||
repo: "deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://download.vscodium.com/debs vscodium main"
|
||||
filename: vscodium
|
||||
register: vscodium
|
||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
|
||||
- name: software | vscodium | update sources (repo added or changed)
|
||||
apt:
|
||||
update_cache: yes
|
||||
changed_when: False
|
||||
when: vscodium.changed
|
||||
|
||||
- name: software | vscodium | install package
|
||||
apt:
|
||||
name: codium
|
||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
|
||||
|
||||
- name: software | vscodium | add repository
|
||||
shell: printf "[gitlab.com_paulcarroty_vscodium_repo]\nname=download.vscodium.com\nbaseurl=https://download.vscodium.com/rpms/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg\nmetadata_expire=1h" | sudo tee -a /etc/yum.repos.d/vscodium.repo
|
||||
args:
|
||||
creates: /etc/yum.repos.d/vscodium.repo
|
||||
when: ansible_distribution in ["Fedora"]
|
||||
|
||||
- name: software | vscodium | add repo key
|
||||
shell: sudo rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg
|
||||
when: ansible_distribution in ["Fedora"]
|
||||
|
||||
- name: software | vscodium | install
|
||||
tags: packages,system,system-packages,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- codium
|
||||
when: ansible_distribution in ["Fedora"]
|
||||
Reference in New Issue
Block a user