Initial
This commit is contained in:
8
roles/workstation/tasks/software/audacious.yml
Normal file
8
roles/workstation/tasks/software/audacious.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
- name: software | audacious | install package
|
||||
tags: packages,flatpak,audacious,workstation-packages
|
||||
become_user: bzoicas
|
||||
flatpak:
|
||||
name: org.atheme.audacious
|
||||
method: user
|
||||
state: present
|
||||
when: audacious is defined and audacious == true
|
||||
8
roles/workstation/tasks/software/audacity.yml
Normal file
8
roles/workstation/tasks/software/audacity.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
- name: software | audacity | install package
|
||||
tags: packages,flatpak,audacity,workstation-packages
|
||||
become_user: bzoicas
|
||||
flatpak:
|
||||
name: org.audacityteam.Audacity
|
||||
method: user
|
||||
state: present
|
||||
when: audacity is defined and audacity == true
|
||||
7
roles/workstation/tasks/software/boto.yml
Normal file
7
roles/workstation/tasks/software/boto.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
- name: software | boto | install package
|
||||
tags: boto,packages,pip,python
|
||||
become_user: bzoicas
|
||||
pip:
|
||||
executable: /usr/bin/pip3
|
||||
state: latest
|
||||
name: boto
|
||||
42
roles/workstation/tasks/software/brave.yml
Normal file
42
roles/workstation/tasks/software/brave.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
- 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"]
|
||||
6
roles/workstation/tasks/software/codecs.yml
Normal file
6
roles/workstation/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/workstation/tasks/software/firefox.yml
Normal file
8
roles/workstation/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
|
||||
8
roles/workstation/tasks/software/glimpse.yml
Normal file
8
roles/workstation/tasks/software/glimpse.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
- name: software | glimpse | install package
|
||||
tags: packages,flatpak,glimpse,workstation-packages
|
||||
become_user: bzoicas
|
||||
flatpak:
|
||||
name: org.glimpse_editor.Glimpse
|
||||
method: user
|
||||
state: present
|
||||
when: glimpse is defined and glimpse == true
|
||||
41
roles/workstation/tasks/software/google_chrome.yml
Normal file
41
roles/workstation/tasks/software/google_chrome.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
- name: software | google-chrome | add repository key
|
||||
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
|
||||
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
|
||||
apt:
|
||||
name: google-chrome-stable
|
||||
when:
|
||||
- ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
- chrome is defined
|
||||
- chrome == true
|
||||
|
||||
- name: software | google-chrome | install
|
||||
tags: packages,system,system-packages,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- google-chrome-stable
|
||||
when:
|
||||
- ansible_distribution in ["Fedora"]
|
||||
- chrome is defined
|
||||
- chrome == true
|
||||
37
roles/workstation/tasks/software/keepassxc.yml
Normal file
37
roles/workstation/tasks/software/keepassxc.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
- name: software | keepassxc | install package
|
||||
tags: packages,firefox,flatpak,workstation-packages
|
||||
become_user: bzoicas
|
||||
flatpak:
|
||||
name: org.keepassxc.KeePassXC
|
||||
method: user
|
||||
state: present
|
||||
|
||||
- name: software | keepassxc | enable autostart
|
||||
tags: packages,keepassxc,flatpak,workstation-packages
|
||||
file:
|
||||
src: /home/bzoicas/.local/share/flatpak/exports/share/applications/org.keepassxc.KeePassXC.desktop
|
||||
dest: /home/bzoicas/.config/autostart/org.keepassxc.KeePassXC.desktop
|
||||
owner: bzoicas
|
||||
group: bzoicas
|
||||
state: link
|
||||
|
||||
- name: software | keepassxc | create keepassxc install directory
|
||||
tags: packages,keepassxc,flatpak,workstation-packages
|
||||
file:
|
||||
path: /home/bzoicas/.config/keepassxc
|
||||
state: directory
|
||||
owner: bzoicas
|
||||
group: bzoicas
|
||||
mode: 0700
|
||||
register: keepassxc_config_dir
|
||||
when: keepassxc is defined and keepassxc == true
|
||||
|
||||
- name: software | keepassxc | add initial keepassxc config
|
||||
tags: packages,keepassxc,flatpak,workstation-packages
|
||||
copy:
|
||||
src: users/bzoicas/keepassxc.ini
|
||||
dest: /home/bzoicas/.config/keepassxc/keepassxc.ini
|
||||
owner: bzoicas
|
||||
group: bzoicas
|
||||
mode: 0600
|
||||
when: keepassxc is defined and keepassxc == true
|
||||
8
roles/workstation/tasks/software/libreoffice.yml
Normal file
8
roles/workstation/tasks/software/libreoffice.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
- name: software | libreoffice | install package
|
||||
tags: packages,flatpak,libreoffice,workstation-packages
|
||||
become_user: bzoicas
|
||||
flatpak:
|
||||
name: org.libreoffice.LibreOffice
|
||||
method: user
|
||||
state: present
|
||||
when: libreoffice is defined and libreoffice == true
|
||||
30
roles/workstation/tasks/software/lutris.yml
Normal file
30
roles/workstation/tasks/software/lutris.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
# As of 2020-06-18, lutris is not available on debian
|
||||
- name: software | lutris | install ppa
|
||||
tags: gaming,lutris
|
||||
apt_repository:
|
||||
repo: 'ppa:lutris-team/lutris'
|
||||
state: present
|
||||
when:
|
||||
- ansible_distribution in ["Pop!_OS", "Ubuntu"]
|
||||
- lutris is defined
|
||||
- lutris == true
|
||||
|
||||
- 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"]
|
||||
- lutris is defined
|
||||
- lutris == true
|
||||
83
roles/workstation/tasks/software/misc_packages.yml
Normal file
83
roles/workstation/tasks/software/misc_packages.yml
Normal file
@@ -0,0 +1,83 @@
|
||||
- name: software | install workstation distribution packages
|
||||
tags: packages,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- acpid
|
||||
- alsa-utils
|
||||
- arandr
|
||||
- asunder
|
||||
- cifs-utils
|
||||
- "{{ cups_package }}"
|
||||
- "{{ cryptsetup_package }}"
|
||||
- dconf-editor
|
||||
- dialog
|
||||
- exfatprogs
|
||||
- "{{ font_inconsolata_package }}"
|
||||
- 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
|
||||
- "{{ ssh_askpass_package }}"
|
||||
- terminator
|
||||
- transmission-gtk
|
||||
- unrar
|
||||
- "{{ wpa_supplicant_package }}"
|
||||
- xfce4-sensors-plugin
|
||||
- xfce4-cpufreq-plugin
|
||||
|
||||
- name: 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 | remove unneeded workstation packages on debian and ubuntu hosts
|
||||
tags: cleanup,packages,workstation-packages
|
||||
package:
|
||||
state: absent
|
||||
name:
|
||||
- firefox*
|
||||
- libreoffice-base-core
|
||||
- libreoffice-calc
|
||||
- libreoffice-common
|
||||
- libreoffice-core
|
||||
- libreoffice-draw
|
||||
- libreoffice-gnome
|
||||
- libreoffice-gtk3
|
||||
- libreoffice-impress
|
||||
- libreoffice-math
|
||||
- libreoffice-writer
|
||||
- thunderbird*
|
||||
when: ansible_distribution in ["Debian", "Pop!_OS", "Ubuntu"]
|
||||
|
||||
- name: software | Install Flatpack packages
|
||||
become_user: bzoicas
|
||||
flatpak:
|
||||
name:
|
||||
- org.keepassxc.KeePassXC
|
||||
- org.openshot.OpenShot
|
||||
- com.skype.Client
|
||||
- org.gnome.Evolution
|
||||
- org.gnome.DejaDup
|
||||
- net.scribus.Scribus
|
||||
- org.gnome.meld
|
||||
- org.gtk.Gtk3theme.Materia-dark
|
||||
- org.gtk.Gtk3theme.Materia-dark-compact
|
||||
- org.signal.Signal
|
||||
- com.github.tchx84.Flatseal
|
||||
- com.discordapp.Discord
|
||||
- com.slack.Slack
|
||||
- com.github.tchx84.Flatseal
|
||||
method : user
|
||||
state: present
|
||||
when: ansible_distribution == "Fedora"
|
||||
26
roles/workstation/tasks/software/nextcloud.yml
Normal file
26
roles/workstation/tasks/software/nextcloud.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
# - name: software | nextcloud | install package
|
||||
# tags: packages,flatpak,audacity,workstation-packages
|
||||
# become_user: bzoicas
|
||||
# flatpak:
|
||||
# name: com.nextcloud.desktopclient.nextcloud
|
||||
# method: user
|
||||
# state: present
|
||||
# when: nextcloud is defined and nextcloud == true
|
||||
|
||||
- name: software | nextcloud-client | install
|
||||
tags: packages,system,system-packages,workstation-packages
|
||||
package:
|
||||
name:
|
||||
- nextcloud-client
|
||||
when: ansible_distribution in ["Fedora"]
|
||||
|
||||
- name: software | nextcloud-client | copy config files
|
||||
tags: dotfiles,dotfiles-bzoicas
|
||||
copy:
|
||||
src: users/bzoicas/{{ item.src }}
|
||||
dest: /home/bzoicas/{{ item.dest }}
|
||||
owner: bzoicas
|
||||
group: bzoicas
|
||||
mode: 0660
|
||||
with_items:
|
||||
- { src: 'nextcloud.cfg', dest: '.config/Nextcloud' }
|
||||
9
roles/workstation/tasks/software/packer.yml
Normal file
9
roles/workstation/tasks/software/packer.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
- name: software | packer | install binary
|
||||
unarchive:
|
||||
src: https://releases.hashicorp.com/packer/{{ packer_version }}/packer_{{ packer_version }}_linux_amd64.zip
|
||||
dest: /usr/local/bin
|
||||
remote_src: yes
|
||||
mode: 0755
|
||||
owner: root
|
||||
group: root
|
||||
when: packer is defined and packer == true
|
||||
10
roles/workstation/tasks/software/solaar.yml
Normal file
10
roles/workstation/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
|
||||
8
roles/workstation/tasks/software/spotify.yml
Normal file
8
roles/workstation/tasks/software/spotify.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
- name: software | spotify | install package
|
||||
tags: packages,flatpak,spotify,workstation-packages
|
||||
become_user: bzoicas
|
||||
flatpak:
|
||||
name: com.spotify.Client
|
||||
method: user
|
||||
state: present
|
||||
when: spotify is defined and spotify == true
|
||||
89
roles/workstation/tasks/software/steam.yml
Normal file
89
roles/workstation/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
|
||||
40
roles/workstation/tasks/software/sublime_text.yml
Normal file
40
roles/workstation/tasks/software/sublime_text.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
- 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
|
||||
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
|
||||
when: ansible_distribution in ["Fedora"]
|
||||
9
roles/workstation/tasks/software/terraform.yml
Normal file
9
roles/workstation/tasks/software/terraform.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
- name: software | terraform | install binary
|
||||
unarchive:
|
||||
src: https://releases.hashicorp.com/terraform/{{ terraform_version }}/terraform_{{ terraform_version }}_linux_amd64.zip
|
||||
dest: /usr/local/bin
|
||||
remote_src: yes
|
||||
mode: 0755
|
||||
owner: root
|
||||
group: root
|
||||
when: terraform is defined and terraform == true
|
||||
18
roles/workstation/tasks/software/thunderbird.yml
Normal file
18
roles/workstation/tasks/software/thunderbird.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
- name: software | thunderbird | install package
|
||||
tags: packages,flatpak,thunderbird,workstation-packages
|
||||
become_user: bzoicas
|
||||
flatpak:
|
||||
name: org.mozilla.Thunderbird
|
||||
method: user
|
||||
state: present
|
||||
when: thunderbird is defined and thunderbird == true
|
||||
|
||||
- name: software | thunderbird | enable autostart
|
||||
tags: packages,flatpak,thunderbird,workstation-packages
|
||||
file:
|
||||
src: /home/bzoicas/.local/share/flatpak/exports/share/applications/org.mozilla.Thunderbird.desktop
|
||||
dest: /home/bzoicas/.config/autostart/org.mozilla.Thunderbird.desktop
|
||||
owner: bzoicas
|
||||
group: bzoicas
|
||||
state: link
|
||||
when: thunderbird is defined and thunderbird == true
|
||||
32
roles/workstation/tasks/software/ulauncher.yml
Normal file
32
roles/workstation/tasks/software/ulauncher.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
- name: software | ulauncher | install ppa
|
||||
tags: ulauncher
|
||||
apt_repository:
|
||||
repo: 'ppa:agornostal/ulauncher'
|
||||
state: present
|
||||
when:
|
||||
- ansible_distribution in ["Pop!_OS", "Ubuntu"]
|
||||
- ulauncher is defined
|
||||
- ulauncher == true
|
||||
|
||||
- name: software | ulauncher | install package
|
||||
tags: ulauncher
|
||||
apt:
|
||||
name: ulauncher
|
||||
state: latest
|
||||
when:
|
||||
- ansible_distribution in ["Pop!_OS", "Ubuntu"]
|
||||
- ulauncher is defined
|
||||
- ulauncher == true
|
||||
|
||||
- name: software | ulauncher | enable autostart
|
||||
tags: ulauncher
|
||||
copy:
|
||||
src: users/bzoicas/ulauncher.desktop
|
||||
dest: /home/bzoicas/.config/autostart/ulauncher.desktop
|
||||
owner: bzoicas
|
||||
group: bzoicas
|
||||
mode: 0600
|
||||
when:
|
||||
- ansible_distribution in ["Pop!_OS", "Ubuntu"]
|
||||
- ulauncher is defined
|
||||
- ulauncher == true
|
||||
46
roles/workstation/tasks/software/virtualbox.yml
Normal file
46
roles/workstation/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
|
||||
10
roles/workstation/tasks/software/vlc.yml
Normal file
10
roles/workstation/tasks/software/vlc.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
- name: software | vlc | install package
|
||||
tags: packages,flatpak,vlc,workstation-packages
|
||||
become_user: bzoicas
|
||||
flatpak:
|
||||
name: org.videolan.VLC
|
||||
method: user
|
||||
state: present
|
||||
when:
|
||||
- vlc is defined
|
||||
- vlc == true
|
||||
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