Skip to content
Snippets Groups Projects
Select Git revision
  • efc005b98cded6c460d238cfb781389f5baec5ee
  • master default protected
2 results

base-linux

Name Last commit Last update
defaults
meta
tasks
vars
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 Varies by OS Additional prerequisites required for Ansible, modules, etc.
common_utils [curl, git, 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