core packages installed on debian nodes(assumed)

This commit is contained in:
Ibrahim Mkusa 2024-09-03 20:54:44 -04:00
parent 46fad18058
commit ac883d33df
3 changed files with 31 additions and 0 deletions

View File

@ -4,6 +4,7 @@
become: true
vars_files:
- ../vars/secrets.yml
- ../vars/packages.yml
tasks:
- name: create user ansible on managed nodes
user:
@ -20,3 +21,10 @@
user: ansible
state: present
key: "{{ lookup('file', '/home/mango/.ssh/id_rsa.pub') }}"
- name: Core packages
apt:
name: "{{ item }}"
state: present
loop: "{{ minimal_debian_packages }}"

View File

@ -8,6 +8,7 @@
- name: update package index on all machines
ansible.builtin.apt:
update_cache: yes
- name: Upgrade all packages to latest version
ansible.builtin.apt:
name: "*"

22
vars/packages.yml Normal file
View File

@ -0,0 +1,22 @@
minimal_debian_packages:
- gcc
- g++
- git
- vim-nox
- zip
- unzip
- zsh
- ack-grep
- automake
- weechat-curses
- mutt
- ufw
- htop
- golang
- silversearcher-ag
- ncdu
- tmux
- taskwarrior
- clang
- screenfetch
- build-essential