From c324cb63afa5bd9135219b65e73491ea1471077c Mon Sep 17 00:00:00 2001 From: binary Date: Wed, 6 Jan 2021 14:05:33 +0100 Subject: Break packages and per-distro tasks --- roles/workstation/tasks/main.yml | 58 ++-------------------------------------- 1 file changed, 2 insertions(+), 56 deletions(-) (limited to 'roles/workstation/tasks/main.yml') diff --git a/roles/workstation/tasks/main.yml b/roles/workstation/tasks/main.yml index 41a640c..6aa3322 100644 --- a/roles/workstation/tasks/main.yml +++ b/roles/workstation/tasks/main.yml @@ -14,68 +14,14 @@ ansible_become_method: "{{ 'doas' if ws_become.stat.exists else 'sudo' }}" ansible_become_user: root -- name: download development packages - package: name="{{ item }}" state=present - loop: - # DEVEL - - base - - base-devel - - go - # EDITOR - - emacs - - neovim - - python-neovim - - py3-neovim - # PYTHON - - python-pip - - py3-pip - - python-requests - - py3-requests - - python-jedi - - py3-jedi - # UTILS - - i3 - - i3status - - gnupg - - py3-pip - - python-pip - - zsh - - zip - - unzip - - tar - - git - - curl - - wget - - wireguard - - wireguard-dkms - - wireguard-tools - # PRIVACY - - tor - - tor-browser - - torsocks - # MULTIMEDIA - - qutebrowser - - firefox - - feh - - imv - - mpv - - cmus - - vlc - - syncthing - failed_when: false - ignore_errors: true +- name: download packages + include_tasks: packages.yml tags: packages -- name: flush fonts cache - shell: fc-cache -fv - - name: check for distribution specific task stat: path="{{ role_path }}/tasks/setup_{{ ws_distribution }}.yml" register: ws_distribution_task -- debug: - var: ws_distribution_task - - name: include distribution specific task include_tasks: "setup_{{ ws_distribution }}.yml" when: ws_distribution_task.stat.exists -- cgit v1.2.3