ansible-infra/roles/base_config/tasks/main.yaml
lilly 7da7a7e723
install earlyoom by default on all systems
It's pretty good and prevents us running into the
kernels OOM behavior (which is a bad one).

https://man.archlinux.org/man/earlyoom.1.en
2026-11-17 16:51:01 +01:00

35 lines
862 B
YAML

# Ensure the ssh module is disabled, so a cloud-init config change doesn't regenerate the host keys for no reason.
- name: check if cloud-init config file exists
ansible.builtin.stat:
path: /etc/cloud/cloud.cfg
register: base_config__stat_cloud_cfg
- name: ensure the cloud-init ssh module is disabled
ansible.builtin.replace:
path: /etc/cloud/cloud.cfg
regexp: " - ssh$"
replace: " #- ssh"
become: true
when: base_config__stat_cloud_cfg.stat.exists
# Ensure a base set of admin tools is installed.
- name: ensure a base set of admin tools is installed
ansible.builtin.apt:
name:
- btop
- curl
- dnsutils
- earlyoom
- fd-find
- git
- gpg
- htop
- joe
- kitty-terminfo
- nano
- ripgrep
- rsync
- tmux
- usbutils
- vim
become: true