FEATURE: basic utils installation task added

This commit is contained in:
2026-07-06 15:15:09 +00:00
parent 7748235e2b
commit 18ee68f74a
2 changed files with 30 additions and 1 deletions
@@ -0,0 +1,26 @@
---
- name: Installing basic utils for comfort work (apt-based system)
when: (ansible_facts['distribution'] == "Debian") or
(ansible_facts['distribution'] == "Ubuntu")
apt:
name:
- vim
- ranger
- zsh
- rsync
- git
- curl
- kitty
- unattended-upgrades
update-cache: yes # Run apt update before installation
become: yes
# The same commands for Alpine
- name: Update Alpine packages
when: (ansible_facts['distribution'] == "Alpine")
command: /sbin/apk update
- name: Install the packages on Alpine
when: (ansible_facts['distribution'] == "Alpine")
command: /sbin/apk add vim ranger zsh rsync git curl kitty
@@ -4,3 +4,6 @@
- name: Improve SSH configuration - name: Improve SSH configuration
ansible.builtin.include_tasks: harden_ssh.yaml ansible.builtin.include_tasks: harden_ssh.yaml
- name: Install basic utils
ansible.builtin.include_tasks: install_basic_utils.yaml