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:
- ubuntu-18.04.yml # Distribution name + full version number
- ubuntu-bionic.yml # Distribution name + release name
- ubuntu-18.yml # Distribution name + major version number
- ubuntu.yml # Distribution name
- debian.yml # OS family name