CHANGE: splits install_packages in base_system role into distro-based files

This commit is contained in:
2026-08-17 12:48:51 +04:00
parent 7de3a91830
commit 4f2678c171
4 changed files with 51 additions and 11 deletions
+2 -11
View File
@@ -2,16 +2,7 @@
- name: Installing basic utils for comfort work (apt-based system) - name: Installing basic utils for comfort work (apt-based system)
when: (ansible_facts['os_family'] == "Debian") when: (ansible_facts['os_family'] == "Debian")
ansible.builtin.apt: ansible.builtin.apt:
name: name: "{{ debian_13_packages }}"
- gcc
- ranger
- zsh
- rsync
- git
- curl
- kitty
- ssh
- openssh-server
update-cache: true # Run apt update before installation update-cache: true # Run apt update before installation
become: true become: true
remote_user: ansible remote_user: ansible
@@ -35,6 +26,6 @@
- name: Update and install packages on Alpine - name: Update and install packages on Alpine
when: (ansible_facts['distribution'] == "Alpine") when: (ansible_facts['distribution'] == "Alpine")
community.general.apk: community.general.apk:
name: ranger zsh rsync git curl kitty openssh name: "{{ alpine_packages }}"
update_cache: true update_cache: true
remote_user: ansible remote_user: ansible
@@ -0,0 +1,20 @@
---
alpine_packages:
- curl
- gcc
- git
- kitty
- neovim
- openssh-server
- ranger
- rsync
- ssh
- zsh
@@ -0,0 +1,20 @@
---
debian_13_packages:
- curl
- gcc
- git
- kitty
- neovim
- openssh-server
- ranger
- rsync
- ssh
- zsh
+9
View File
@@ -0,0 +1,9 @@
---
- name: Include Debian 13 package variables
ansible.builtin.include_vars:
file: debian_13_packages.yaml
- name: Include Alpine package variables
ansible.builtin.include_vars:
file: alpine_packages.yaml