This commit is contained in:
bzoicas
2023-07-10 10:41:17 +03:00
commit dbb46eb92a
360 changed files with 13521 additions and 0 deletions

View 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"]