ubuntu_base
Ansible Role - ubuntu-base
This repo contains the Ubuntu Base (ubuntu_base) Ansible role.
What this role does
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
Variables
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)
Testing
This role is fully tested via Test Kitchen using sample inventory data contained in this repo.
TESTING.md contains details and instructions for testing.
Donate To Support This Ansible Role
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!
About
Various tweaks and basic prerequisites for Ubuntu systems along with a fancy bash prompt
Install
ansible-galaxy install route1337/ansible-role-ubuntubase
License
mit
Downloads
128
Owner
Modern InfoSec, Zero Trust, and DevOps consulting for Web2 and Web3 clients.