This repo contains the Ubuntu Base (ubuntu_base) Ansible role.
This Ansible role will configure some basic system settings, add/remove some common packages, and deploy standard configurations for some common services.
Changes performed:
- Remove the following packages
- landscape-client-ui
- landscape-client-ui-install
- landscape-client
- landscape-common
- update-motd
- cloud-init
- Install the following packages
- bmon
- htop
- vim
- curl
- gnupg2
- atop
- git
- molly-guard
- python-pip
- python-dev
- python3-pip
- unzip
- psmisc
- net-tools
- zsh
- fzf (Ubuntu 20.04+ only)
- locate
- Set root to use zsh
- Deploy a custom
zshrc
system-wide - Install and configure ntp to run off the NTP pool using the
UTC
timezone - Install thefuck in python3 and configure it for root with Matthew Ahrenstein's custom rules (Ubuntu 18.04+ only)
- (Optional) Specify DNS servers for
/etc/resolv.conf
and disable the SystemD resolver
The following variables are optional:
ubuntu_base.dns_servers
- A list of DNS servers to force Ubuntu to use instead of using the SystemD resolver. (Leave this undefined to keep the OS defaults)ubuntu_base.search_domain
- The search domain to use in resolv.conf. (This variable is required ifubuntu_base.dns_servers
is specified!)ubuntu_base.tzsymlink
- The local TZ symlink. (Make sure both TZ variables match the same timezone)ubuntu_base.localtime
- The localtime synlink path (Make sure both TZ variables match the same timezone)
This role is fully tested via Test Kitchen using sample inventory data contained in this repo.
TESTING.md contains details and instructions for testing.
Route 1337 LLC's open source code heavily relies on donations. If you find this Ansible role useful, please consider using the GitHub Sponsors button to show your continued support.
Thank you for your support!