Files
vmn-ansible/roles/0_basic_postinstall/tasks/install_basic_utils.yaml
T

26 lines
685 B
YAML

---
- 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