dotfiles/roles/packages/tasks/main.yml
Fernando Schauenburg ce68613438 ansible: pass list to package managers instead of looping
Passing the list and letting the package manager deal with it as a whole
is much faster than looping, which is equivalent to invoking the package
manager multiple times, each time with a single package.
2020-12-17 19:15:27 +01:00

59 lines
961 B
YAML

- name: Set up Debian machine
when: ansible_os_family == "Debian"
become: yes
block:
- name: Install apt packages
apt:
update_cache: yes
state: latest
name:
- curl
- exa
- exuberant-ctags
- ffmpeg
- gpg
- htop
- nmap
- psmisc
- shellcheck
- sqlite
- stow
- tree
- vifm
- wget
- youtube-dl
- name: Set up macOS machine
when: ansible_os_family == "Darwin"
block:
- name: Install homebrew packages
homebrew:
state: latest
name:
- coreutils
- ctags
- curl
- exa
- exiftool
- ffmpeg
- findutils
- gnu-sed
- gpg
- grep
- gzip
- htop
- imagemagick
- jupyter
- make
- nmap
- pstree
- reattach-to-user-namespace
- shellcheck
- sqlite
- stow
- tree
- vifm
- wget
- youtube-dl