Skip to content
Snippets Groups Projects
Name Last commit Last update
defaults
meta
tasks
README.md

Base Linux

This role does bootstrapping and common configuration for a base Linux server.

Requirements

Ansible 2.4 or later.

Role Variables

Variable Default Purpose
hostname The hostname to set on the server. If blank or undefined, the hostname will not be changed.
required_utils [] Additional prerequisites required for Ansible, modules, etc.
common_utils [curl, git, gzip, htop, screen, unzip, vim] Common packages and utilities to install.

OS specific variable overrides will be read from the vars/ directory. The first OS specific var file found will be loaded, and they are queried in descending order by specificity. For example, Ubuntu would check files in this order:

  1. ubuntu-18.04.yml # Distribution name + full version number
  2. ubuntu-bionic.yml # Distribution name + release name
  3. ubuntu-18.yml # Distribution name + major version number
  4. ubuntu.yml # Distribution name
  5. debian.yml # OS family name