aboutsummaryrefslogtreecommitdiffstats
path: root/roles/_workstation/basetools
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-12-10 21:17:16 +0100
committerRomain Gonçalves <me@rgoncalves.se>2022-12-12 22:04:27 +0100
commit7c1f7039170a25f192d87235476179f7cfe01a85 (patch)
treefc8e77b7176fa730b30b20081e76f2527371e9a3 /roles/_workstation/basetools
parent21fc0867dc42128434e5c46ca684d9a966184b8a (diff)
downloadrules-7c1f7039170a25f192d87235476179f7cfe01a85.tar.gz
chore: explode workstation role in subroles
Diffstat (limited to 'roles/_workstation/basetools')
-rw-r--r--roles/_workstation/basetools/defaults/main.yml53
-rw-r--r--roles/_workstation/basetools/tasks/main.yml13
-rw-r--r--roles/_workstation/basetools/vars/os_archlinux.yml61
-rw-r--r--roles/_workstation/basetools/vars/os_openbsd.yml12
4 files changed, 139 insertions, 0 deletions
diff --git a/roles/_workstation/basetools/defaults/main.yml b/roles/_workstation/basetools/defaults/main.yml
new file mode 100644
index 0000000..740a870
--- /dev/null
+++ b/roles/_workstation/basetools/defaults/main.yml
@@ -0,0 +1,53 @@
+---
+
+basetools_distribution_packages: []
+basetools_common_packages:
+ - ansible
+ - ansible-lint
+ - calcurse
+ - cmus
+ - dmenu
+ - dunst
+ - entr
+ - feh
+ - fzf
+ - git
+ - git-crypt
+ - glances
+ - gnupg
+ - go
+ - gopass
+ - htop
+ - httpie
+ - inotify-tools
+ - ipmitool
+ - ipython
+ - isync
+ - jq
+ - lowdown
+ - lynx
+ - mpv
+ - neomutt
+ - neovim
+ - newsboat
+ - nmap
+ - parallel
+ - qutebrowser
+ - rsync
+ - rtorrent
+ - rust
+ - scrot
+ - syncthing
+ - terminus-font
+ - tig
+ - tor
+ - tree
+ - unzip
+ - vlc
+ - weechat
+ - wget
+ - wkhtmltopdf
+ - xclip
+ - zathura
+ - zip
+ - zsh
diff --git a/roles/_workstation/basetools/tasks/main.yml b/roles/_workstation/basetools/tasks/main.yml
new file mode 100644
index 0000000..f53d213
--- /dev/null
+++ b/roles/_workstation/basetools/tasks/main.yml
@@ -0,0 +1,13 @@
+---
+
+- name: include per-os vars
+ ansible.builtin.include_vars:
+ file: "os_{{ ansible_distribution | lower }}.yml"
+
+- name: install distribution packages
+ ansible.builtin.package:
+ name: "{{ item }}"
+ state: present
+ loop:
+ - "{{ basetools_common_packages }}"
+ - "{{ basetools_distribution_packages }}"
diff --git a/roles/_workstation/basetools/vars/os_archlinux.yml b/roles/_workstation/basetools/vars/os_archlinux.yml
new file mode 100644
index 0000000..e98db93
--- /dev/null
+++ b/roles/_workstation/basetools/vars/os_archlinux.yml
@@ -0,0 +1,61 @@
+---
+
+basetools_distribution_packages:
+ - acpi
+ - alsa-tools
+ - base-devel
+ - bc
+ - bind
+ - diffoscope
+ - clang
+ - easyeffects
+ - entr
+ - firefox
+ - go
+ - go-tools
+ - gopls
+ - httpie
+ - imagemagick
+ - inetutils
+ - libvirt
+ - light
+ - luarocks
+ - man-db
+ - nfs-utils
+ - noto-fonts-emoji
+ - npm
+ - obs-studio
+ - openbsd-netcat
+ - opendoas
+ - pamixer
+ - pavucontrol
+ - pdfjs-legacy
+ - postgresql
+ - pyenv
+ - python-debugpy
+ - python-netaddr
+ - python-nodeenv
+ - python-pip
+ - python-pipx
+ - python-poetry
+ - python-pynvim
+ - python-qrencode
+ - qemu
+ - shellcheck
+ - signify
+ - sshuttle
+ - strace
+ - stylua
+ - tar
+ - tmux
+ - torbrowser-launcher
+ - traceroute
+ - unrar
+ - vi
+ - wireguard-tools
+ - wireplumber
+ - yadm
+ - yarn
+ - yt-dlp
+ - zathura-pdf-mupdf
+ - zk
diff --git a/roles/_workstation/basetools/vars/os_openbsd.yml b/roles/_workstation/basetools/vars/os_openbsd.yml
new file mode 100644
index 0000000..e8623c5
--- /dev/null
+++ b/roles/_workstation/basetools/vars/os_openbsd.yml
@@ -0,0 +1,12 @@
+---
+
+basetools_distribution_packages:
+ - docker-cli
+ - gomuks
+ - mozilla-firefox
+ - py-httpie
+ - py3-neovim
+ - py3-netaddr
+ - py3-pip
+ - tor-browser
+ - wireguard-tools
remember that computers suck.