core packages installed on debian nodes(assumed)
This commit is contained in:
parent
46fad18058
commit
ac883d33df
@ -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 }}"
|
||||
|
||||
|
@ -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
22
vars/packages.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user