1
0
Fork 0

split the ansible agnostic packages installation into cli and gui packages

This commit is contained in:
cătălin 2024-08-22 10:05:47 +02:00
commit d497490285
No known key found for this signature in database
3 changed files with 29 additions and 3 deletions

View file

@ -14,4 +14,6 @@
- app/com.nextcloud.desktopclient.nextcloud/x86_64/stable
- net.lutris.Lutris
- io.github.diegoivanme.flowtime
- org.gnome.Decibels
- net.davidotek.pupgui2
method: "user"

View file

@ -1,4 +1,4 @@
- name: Install os-agnostic packages
- name: Install CLI os-agnostic packages
become: true
ansible.builtin.package:
name:
@ -8,13 +8,24 @@
- fish
- rofi
- automake
- libtool
- mpv
- ncdu
- xclip
state: present
tags:
- agnostic
- cli
- name: Install GUI os-agnostic packages
become: true
ansible.builtin.package:
name:
- mpv
- rofi
state: present
tags:
- agnostic
- gui
- name: Install Arch packages
when: ansible_os_family == "Archlinux"

View file

@ -17,6 +17,19 @@ function envsource
end
end
function envunset
if not set -q argv[1]
set argv[1] ".env"
end
echo "Using $argv[1] as input file"
for line in (grep -v '^\s*\(#\|$\)' $argv[1] | grep -E '^[A-Za-z_]+=[^#\n]+')
set item (string split -m 1 '=' $line)
set -e $item[1]
echo "key $item[1] unset"
end
end
function gen-secret
if not set -q argv[1]