Update playbooks/install-essential-tools.yml

This commit is contained in:
2025-08-29 12:39:47 +00:00
parent ef50baed9d
commit a9cb923ccb

View File

@@ -4,20 +4,32 @@
become: true
vars:
essential_packages:
- curl
- git
- jq
- htop
- unzip
- ca-certificates
- net-tools
- acl
- fzf
# Base tools required everywhere
base_packages:
- curl # used for API calls, downloads
- git # version control / pulling repos
- ca-certificates # ensures HTTPS works
- iproute2 # modern networking tools (ip a, ip r)
# Extra tools for troubleshooting / convenience
extra_packages:
- jq # parse JSON (docker inspect, APIs)
- htop # friendlier process viewer
- unzip # handle .zip archives
- dnsutils # dig, nslookup
- fzf # fuzzy finder
- tree # visualize directories
- bat # cat with syntax highlighting
- net-tools # old ifconfig, netstat (legacy but familiar)
tasks:
- name: Install common tools
- name: Install base tools
apt:
name: "{{ essential_packages }}"
name: "{{ base_packages }}"
state: present
update_cache: yes
- name: Install extra tools
apt:
name: "{{ extra_packages }}"
state: present