FEATURE: basic utils installation task added
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user