From 7c1f7039170a25f192d87235476179f7cfe01a85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Sat, 10 Dec 2022 21:17:16 +0100 Subject: chore: explode workstation role in subroles --- roles/_workstation/basetools/defaults/main.yml | 53 +++++++++++++++++++ roles/_workstation/basetools/tasks/main.yml | 13 +++++ roles/_workstation/basetools/vars/os_archlinux.yml | 61 ++++++++++++++++++++++ roles/_workstation/basetools/vars/os_openbsd.yml | 12 +++++ 4 files changed, 139 insertions(+) create mode 100644 roles/_workstation/basetools/defaults/main.yml create mode 100644 roles/_workstation/basetools/tasks/main.yml create mode 100644 roles/_workstation/basetools/vars/os_archlinux.yml create mode 100644 roles/_workstation/basetools/vars/os_openbsd.yml (limited to 'roles/_workstation/basetools') 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 -- cgit v1.2.3