first commit
This commit is contained in:
5
roles/work/tasks/software/another_redis_desktop.yml
Normal file
5
roles/work/tasks/software/another_redis_desktop.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
- name: software | another_redis_desktop | download package
|
||||
ansible.builtin.get_url:
|
||||
url: https://github.com/qishibo/AnotherRedisDesktopManager/releases/download/v1.6.1/Another-Redis-Desktop-Manager.1.6.1.AppImage
|
||||
dest: /home/super_user/Apps
|
||||
mode: '0755'
|
||||
56
roles/work/tasks/software/brave.yml
Normal file
56
roles/work/tasks/software/brave.yml
Normal file
@@ -0,0 +1,56 @@
|
||||
- name: software | brave | add repository key
|
||||
apt_key:
|
||||
url: https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
|
||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
|
||||
- name: software | brave | add repository
|
||||
apt_repository:
|
||||
repo: "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"
|
||||
filename: brave-browser
|
||||
register: brave_browser
|
||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
|
||||
- name: software | brave | update sources (repo added or changed)
|
||||
apt:
|
||||
update_cache: yes
|
||||
changed_when: False
|
||||
when: brave_browser.changed
|
||||
|
||||
- name: software | brave | install package
|
||||
apt:
|
||||
name: brave-browser
|
||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
|
||||
|
||||
- name: software | brave | add repository
|
||||
shell: sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/
|
||||
args:
|
||||
creates: /etc/yum.repos.d/brave.repo
|
||||
when: ansible_distribution in ["Fedora"]
|
||||
|
||||
- name: software | brave | add repo key
|
||||
shell: sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
|
||||
args:
|
||||
creates: /etc/yum.repos.d/brave.repo
|
||||
when: ansible_distribution in ["Fedora"]
|
||||
|
||||
- name: software | brave | install
|
||||
tags: packages,system,system-packages,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- brave-browser
|
||||
when: ansible_distribution in ["Fedora"]
|
||||
|
||||
- name: software | brave | add repository
|
||||
community.general.zypper_repository:
|
||||
# name: brave-browser
|
||||
repo: 'https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo'
|
||||
state: present
|
||||
when: ansible_distribution in ["openSUSE Leap", "openSUSE Tumbleweed-Slowroll"]
|
||||
|
||||
- name: software | brave | install
|
||||
tags: packages,system,system-packages,workstation-packages
|
||||
zypper:
|
||||
name:
|
||||
- brave-browser
|
||||
when: ansible_distribution in ["openSUSE Leap", "openSUSE Tumbleweed-Slowroll"]
|
||||
6
roles/work/tasks/software/codecs.yml
Normal file
6
roles/work/tasks/software/codecs.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- name: software | install multimedia codecs
|
||||
tags: packages,system,system-packages,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- "{{ gstreamer_libav_package }}"
|
||||
- "{{ gstreamer_plugins_bad_package }}"
|
||||
8
roles/work/tasks/software/firefox.yml
Normal file
8
roles/work/tasks/software/firefox.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
- name: software | firefox | install package
|
||||
tags: packages,system,system-packages,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- firefox
|
||||
when:
|
||||
- firefox is defined
|
||||
- firefox == true
|
||||
48
roles/work/tasks/software/google_chrome.yml
Normal file
48
roles/work/tasks/software/google_chrome.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
- name: software | google-chrome | add repository key | ubuntu
|
||||
apt_key:
|
||||
url: https://dl-ssl.google.com/linux/linux_signing_key.pub
|
||||
when:
|
||||
- ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
- chrome is defined
|
||||
- chrome == true
|
||||
|
||||
- name: software | google-chrome | add repository | ubuntu
|
||||
apt_repository:
|
||||
repo: "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"
|
||||
filename: google-chrome
|
||||
register: chrome_repo
|
||||
when:
|
||||
- ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
- chrome is defined
|
||||
- chrome == true
|
||||
|
||||
- name: software | google-chrome | update sources (repo added or changed)
|
||||
apt:
|
||||
update_cache: yes
|
||||
changed_when: False
|
||||
when: chrome_repo.changed
|
||||
|
||||
- name: software | google-chrome | install package | ubuntu
|
||||
apt:
|
||||
name: google-chrome-stable
|
||||
when:
|
||||
- ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
- chrome is defined
|
||||
- chrome == true
|
||||
|
||||
- name: software | google-chrome | add repo | fedora
|
||||
shell: sudo dnf config-manager --set-enabled google-chrome
|
||||
when:
|
||||
- ansible_distribution in ["Fedora"]
|
||||
- chrome is defined
|
||||
- chrome == true
|
||||
|
||||
- name: software | google-chrome | install | fedora
|
||||
tags: packages,system,system-packages,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- google-chrome-stable
|
||||
when:
|
||||
- ansible_distribution in ["Fedora"]
|
||||
- chrome is defined
|
||||
- chrome == true
|
||||
16
roles/work/tasks/software/kube_lens.yml
Normal file
16
roles/work/tasks/software/kube_lens.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
- name: software | kube_lens | add repo
|
||||
shell: sudo dnf config-manager --add-repo https://downloads.k8slens.dev/rpm/lens.repo
|
||||
when:
|
||||
- ansible_distribution in ["Fedora"]
|
||||
- kube_lens is defined
|
||||
- kube_lens == true
|
||||
|
||||
- name: software | kube_lens | install
|
||||
tags: packages,system,system-packages,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- lens
|
||||
when:
|
||||
- ansible_distribution in ["Fedora"]
|
||||
- kube_lens is defined
|
||||
- kube_lens == true
|
||||
8
roles/work/tasks/software/libreoffice.yml
Normal file
8
roles/work/tasks/software/libreoffice.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
- name: software | libreoffice | install package
|
||||
tags: packages,flatpak,libreoffice,workstation-packages
|
||||
become_user: super_user
|
||||
|
||||
package:
|
||||
name: libreoffice
|
||||
state: present
|
||||
when: libreoffice is defined and libreoffice == true
|
||||
20
roles/work/tasks/software/lutris.yml
Normal file
20
roles/work/tasks/software/lutris.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
# As of 2020-06-18, lutris is not available on debian
|
||||
- name: software | lutris | install package
|
||||
tags: gaming,lutris
|
||||
package:
|
||||
state: latest
|
||||
name: lutris
|
||||
when:
|
||||
- ansible_distribution in ["Archlinux", "Pop!_OS", "Ubuntu"]
|
||||
- lutris is defined
|
||||
- lutris == true
|
||||
|
||||
- name: software | lutris | install package
|
||||
tags: packages,system,system-packages,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- lutris
|
||||
when:
|
||||
- ansible_distribution in ["Fedora", "openSUSE Leap", "openSUSE Tumbleweed-Slowroll"]
|
||||
- lutris is defined
|
||||
- lutris == true
|
||||
84
roles/work/tasks/software/misc_packages.yml
Normal file
84
roles/work/tasks/software/misc_packages.yml
Normal file
@@ -0,0 +1,84 @@
|
||||
- name: software | misc_software | install workstation distribution packages
|
||||
tags: packages,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- acpid
|
||||
- alsa-utils
|
||||
- arandr
|
||||
- cifs-utils
|
||||
- "{{ cups_package }}"
|
||||
- "{{ cryptsetup_package }}"
|
||||
- dconf-editor
|
||||
- dialog
|
||||
- geany
|
||||
- mc
|
||||
- gparted
|
||||
- "{{ p7zip_package }}"
|
||||
- "{{ libnotify_package }}"
|
||||
- "{{ network_manager_openvpn_package }}"
|
||||
- "{{ network_manager_package }}"
|
||||
- "{{ network_manager_pptp_package }}"
|
||||
- "{{ network_manager_vpnc_package }}"
|
||||
- pavucontrol
|
||||
- shotwell
|
||||
- sshpass
|
||||
- terminator
|
||||
- clusterssh
|
||||
- unrar
|
||||
- "{{ wpa_supplicant_package }}"
|
||||
- dia
|
||||
- evolution
|
||||
- virt-manager
|
||||
- libvirt-daemon
|
||||
- remmina
|
||||
- wine
|
||||
- powertop
|
||||
- podman
|
||||
- opentofu
|
||||
- flux2-cli
|
||||
- sslscan
|
||||
|
||||
|
||||
- name: software | misc_software | install system packages specific to debian and ubuntu
|
||||
tags: packages,system,system-packages,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- synaptic
|
||||
- vim-gtk3
|
||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
|
||||
- name: software | misc_software | remove unneeded workstation packages on debian and ubuntu hosts
|
||||
tags: cleanup,packages,workstation-packages
|
||||
package:
|
||||
state: absent
|
||||
name:
|
||||
- libreoffice-base-core
|
||||
- libreoffice-calc
|
||||
- libreoffice-common
|
||||
- libreoffice-core
|
||||
- libreoffice-draw
|
||||
- libreoffice-gnome
|
||||
- libreoffice-gtk3
|
||||
- libreoffice-impress
|
||||
- libreoffice-math
|
||||
- libreoffice-writer
|
||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
|
||||
- name: software | misc_software | Install Flatpack packages
|
||||
become_user: super_user
|
||||
|
||||
flatpak:
|
||||
name:
|
||||
- org.keepassxc.KeePassXC
|
||||
- org.gnome.meld
|
||||
- org.jousse.vincent.Pomodorolm
|
||||
- com.github.tchx84.Flatseal
|
||||
- dev.k8slens.OpenLens
|
||||
- com.redis.RedisInsight
|
||||
- com.prusa3d.PrusaSlicer
|
||||
- org.fedoraproject.MediaWriter
|
||||
- com.github.iwalton3.jellyfin-media-player
|
||||
- com.github.xournalpp.xournalpp
|
||||
- org.sqlitebrowser.sqlitebrowser
|
||||
method : user
|
||||
state: present
|
||||
36
roles/work/tasks/software/nextcloud.yml
Normal file
36
roles/work/tasks/software/nextcloud.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
- name: software | nextcloud | install
|
||||
tags: packages,nextcloud,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- nextcloud-client
|
||||
when:
|
||||
- ansible_distribution in ["Fedora", "openSUSE Tumbleweed-Slowroll", "openSUSE Leap"]
|
||||
- nextcloud is defined
|
||||
- nextcloud == true
|
||||
|
||||
- name: software | nextcloud | install
|
||||
tags: packages,nextcloud,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- nextcloud-desktop
|
||||
when:
|
||||
- ansible_distribution in ["Pop!_OS", "Ubuntu"]
|
||||
- nextcloud is defined
|
||||
- nextcloud == true
|
||||
|
||||
- name: software | nextcloud-client | copy config files
|
||||
tags: dotfiles,dotfiles-super_user
|
||||
|
||||
copy:
|
||||
src: users/super_user/{{ item.src }}
|
||||
dest: /home/super_user/{{ item.dest }}
|
||||
owner: super_user
|
||||
group: super_user
|
||||
|
||||
mode: 0660
|
||||
with_items:
|
||||
- { src: 'nextcloud.cfg', dest: '.config/Nextcloud' }
|
||||
when:
|
||||
- ansible_distribution in ["Fedora", "openSUSE Leap", "openSUSE Tumbleweed-Slowroll", "Pop!_OS", "Ubuntu"]
|
||||
- nextcloud is defined
|
||||
- nextcloud == true
|
||||
10
roles/work/tasks/software/solaar.yml
Normal file
10
roles/work/tasks/software/solaar.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
- name: software | install workstation distribution packages
|
||||
tags: packages,workstation-packages
|
||||
package:
|
||||
name: solaar
|
||||
state: latest
|
||||
|
||||
- name: software | make sure solaar doesn't autostart
|
||||
file:
|
||||
path: /etc/xdg/autostart/solaar.desktop
|
||||
state: absent
|
||||
89
roles/work/tasks/software/steam.yml
Normal file
89
roles/work/tasks/software/steam.yml
Normal file
@@ -0,0 +1,89 @@
|
||||
# For some reason Manjaro is detected as Archlinux
|
||||
- name: software | steam | check if distribution is manjaro
|
||||
stat:
|
||||
path: /usr/bin/manjaro-hello
|
||||
register: manjaro
|
||||
when:
|
||||
- ansible_distribution == "Archlinux"
|
||||
- steam is defined
|
||||
- steam == true
|
||||
|
||||
- name: software | steam | steam | enable multilib (arch)
|
||||
tags: steam,steam,multilib
|
||||
blockinfile:
|
||||
state: present
|
||||
backup: yes
|
||||
path: /etc/pacman.conf
|
||||
marker: '# {mark} ANSIBLE MANAGED BLOCK MULTILIB'
|
||||
block: |
|
||||
[multilib]
|
||||
Include = /etc/pacman.d/mirrorlist
|
||||
register: multilib
|
||||
when:
|
||||
- ansible_distribution == "Archlinux"
|
||||
- manjaro.stat.exists == False
|
||||
- steam is defined
|
||||
- steam == true
|
||||
|
||||
- name: software | steam | update cache (multilib added) (arch)
|
||||
tags: steam,steam,multilib
|
||||
pacman: update_cache=yes
|
||||
when:
|
||||
- multilib.changed
|
||||
- ansible_distribution == "Archlinux"
|
||||
|
||||
# As of 2020-09-30, multiarch is still required to be enabled in Debian and Ubuntu
|
||||
# Note: Not required in Pop OS, apparently
|
||||
- name: steam | add multiarch (debian, ubuntu)
|
||||
tags: steam,steam,multiarch
|
||||
lineinfile:
|
||||
dest: /var/lib/dpkg/arch
|
||||
regexp: "^i386"
|
||||
line: "i386"
|
||||
create: yes
|
||||
when:
|
||||
- ansible_distribution in ['Debian', 'Ubuntu']
|
||||
- steam is defined
|
||||
- steam == true
|
||||
|
||||
# For Debian and Ubuntu, set up acceptance of steam license before continuing
|
||||
- name: software | steam | accept license
|
||||
tags: gaming,steam
|
||||
debconf:
|
||||
name: "steam"
|
||||
question: "steam/question"
|
||||
value: "I AGREE"
|
||||
vtype: "select"
|
||||
when:
|
||||
- ansible_distribution in ["Debian", "Ubuntu"]
|
||||
- steam is defined
|
||||
- steam == true
|
||||
|
||||
- name: software | steam | install package
|
||||
tags: steam,steam
|
||||
package:
|
||||
state: latest
|
||||
name: "{{ steam_package }}"
|
||||
when:
|
||||
- steam is defined
|
||||
- steam == true
|
||||
|
||||
- name: software | steam | install steam-devices package (debian, ubuntu, etc)
|
||||
tags: steam,steam
|
||||
package:
|
||||
state: latest
|
||||
name: steam-devices
|
||||
when:
|
||||
- ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
- steam is defined
|
||||
- steam == true
|
||||
|
||||
- name: install vulkan drivers (debian, ubuntu, etc)
|
||||
tags: drivers,steam
|
||||
package:
|
||||
state: latest
|
||||
name: mesa-vulkan-drivers
|
||||
when:
|
||||
- ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
- steam is defined
|
||||
- steam == true
|
||||
61
roles/work/tasks/software/sublime_text.yml
Normal file
61
roles/work/tasks/software/sublime_text.yml
Normal file
@@ -0,0 +1,61 @@
|
||||
- name: software | sublime_text | add repository key
|
||||
apt_key:
|
||||
url: https://download.sublimetext.com/sublimehq-pub.gpg
|
||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
|
||||
- name: software | sublime_text | add repository
|
||||
apt_repository:
|
||||
repo: "deb https://download.sublimetext.com/ apt/stable/"
|
||||
filename: sublime_text
|
||||
register: sublime_text
|
||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
|
||||
- name: software | sublime_text | update sources (repo added or changed)
|
||||
apt:
|
||||
update_cache: yes
|
||||
changed_when: False
|
||||
when: sublime_text.changed
|
||||
|
||||
- name: software | sublime_text | install package
|
||||
apt:
|
||||
name:
|
||||
- sublime-text
|
||||
- sublime-merge
|
||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
|
||||
|
||||
- name: software | sublime_text | add repository
|
||||
shell: sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
|
||||
args:
|
||||
creates: /etc/yum.repos.d/sublime_text.repo
|
||||
when: ansible_distribution in ["Fedora"]
|
||||
|
||||
- name: software | sublime_text | add repo key
|
||||
shell: sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
|
||||
when: ansible_distribution in ["Fedora"]
|
||||
|
||||
- name: software | sublime_text | install
|
||||
tags: packages,system,system-packages,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- sublime-text
|
||||
- sublime-merge
|
||||
when: ansible_distribution in ["Fedora"]
|
||||
|
||||
- name: software | sublime_text | add repository
|
||||
shell: sudo zypper addrepo -g -f https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
|
||||
args:
|
||||
creates: /etc/zypp/repos.d/sublime-text.repo
|
||||
when: ansible_distribution in ["openSUSE Leap", "openSUSE Tumbleweed-Slowroll"]
|
||||
|
||||
- name: software | sublime_text | add repo key
|
||||
shell: sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
|
||||
when: ansible_distribution in ["openSUSE Leap", "openSUSE Tumbleweed-Slowroll"]
|
||||
|
||||
- name: software | sublime_text | install
|
||||
tags: packages,system,system-packages,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- sublime-text
|
||||
- sublime-merge
|
||||
when: ansible_distribution in ["openSUSE Leap", "openSUSE Tumbleweed-Slowroll"]
|
||||
6
roles/work/tasks/software/thunderbird.yml
Normal file
6
roles/work/tasks/software/thunderbird.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- name: software | thunderbird | install package
|
||||
tags: packages,thunderbird,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- thunderbird
|
||||
when: thunderbird is defined and thunderbird == true
|
||||
46
roles/work/tasks/software/virtualbox.yml
Normal file
46
roles/work/tasks/software/virtualbox.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
# As of May 2, 2020; Virtualbox is available in backports, but is an old version.
|
||||
# The following will add the official Virtualbox repo
|
||||
|
||||
- name: software | virtualbox | install apt key (debian)
|
||||
tags: virtualbox,repositories,virtualbox
|
||||
apt_key:
|
||||
url: https://www.virtualbox.org/download/oracle_vbox_2016.asc
|
||||
state: present
|
||||
when:
|
||||
- ansible_distribution == "Debian"
|
||||
- virtualbox is defined
|
||||
- virtualbox == true
|
||||
|
||||
- name: software | virtualbox | install repository (debian)
|
||||
tags: virtualbox,repositories,virtualbox
|
||||
apt_repository:
|
||||
repo: deb https://download.virtualbox.org/virtualbox/debian buster contrib
|
||||
state: present
|
||||
filename: virtualbox
|
||||
register: virtualbox_repo_debian
|
||||
when:
|
||||
- ansible_distribution == "Debian"
|
||||
- virtualbox is defined
|
||||
- virtualbox == true
|
||||
|
||||
- name: software | virtualbox | install repository (Fedora)
|
||||
tags: virtualbox,repositories,virtualbox
|
||||
ansible.builtin.yum_repository:
|
||||
name: virtualbox
|
||||
description: EPEL YUM repo
|
||||
baseurl: http://download.virtualbox.org/virtualbox/rpm/fedora/$releasever/$basearch
|
||||
gpgkey: https://www.virtualbox.org/download/oracle_vbox.asc
|
||||
register: virtualbox_repo_fedora
|
||||
when:
|
||||
- ansible_distribution == "Fedora"
|
||||
- virtualbox is defined
|
||||
- virtualbox == true
|
||||
|
||||
|
||||
- name: software | virtualbox | install package
|
||||
tags: virtualbox
|
||||
package:
|
||||
name: "{{ virtualbox_package }}"
|
||||
when:
|
||||
- virtualbox is defined
|
||||
- virtualbox == true
|
||||
11
roles/work/tasks/software/vlc.yml
Normal file
11
roles/work/tasks/software/vlc.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
- name: software | vlc | install package
|
||||
tags: packages,flatpak,vlc,workstation-packages
|
||||
become_user: super_user
|
||||
|
||||
flatpak:
|
||||
name: org.videolan.VLC
|
||||
method: user
|
||||
state: present
|
||||
when:
|
||||
- vlc is defined
|
||||
- vlc == true
|
||||
44
roles/work/tasks/software/vscodium.yml
Normal file
44
roles/work/tasks/software/vscodium.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
- name: software | vscodium | add repository key
|
||||
shell: sudo wget https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg -O /usr/share/keyrings/vscodium-archive-keyring.asc
|
||||
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.asc ] https://paulcarroty.gitlab.io/vscodium-deb-rpm-repo/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=gitlab.com_paulcarroty_vscodium_repo\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/zypp/repos.d/vscodium.repo
|
||||
args:
|
||||
creates: /etc/zypp/repos.d/vscodium.repo
|
||||
when: ansible_distribution in ["openSUSE Tumbleweed-Slowroll", "openSUSE Leap"]
|
||||
|
||||
- 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", "openSUSE Leap", "openSUSE Tumbleweed-Slowroll"]
|
||||
|
||||
- name: software | vscodium | install
|
||||
tags: packages,system,system-packages,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- codium
|
||||
when: ansible_distribution in ["Fedora", "openSUSE Leap", "openSUSE Tumbleweed-Slowroll"]
|
||||
Reference in New Issue
Block a user