route1337.ubuntu_base

Ansible Role - ubuntu-base

This repository has the Ubuntu Base (ubuntu_base) Ansible role.

What this role does

This Ansible role sets some basic system settings, adds or removes common packages, and sets up standard configurations for common services.

Changes made:

  1. Uninstall these packages:
    • landscape-client-ui
    • landscape-client-ui-install
    • landscape-client
    • landscape-common
    • update-motd
    • cloud-init
  2. Install these packages:
    • bmon
    • htop
    • vim
    • curl
    • gnupg2
    • atop
    • git
    • molly-guard
    • python-pip
    • python-dev
    • python3-pip
    • unzip
    • psmisc
    • net-tools
    • zsh
    • fzf (only for Ubuntu 20.04 and newer)
    • locate
  3. Change root's shell to zsh
  4. Set up a custom zshrc for all users
  5. Install and configure NTP to use the NTP pool with UTC timezone
  6. Install thefuck for python3 and set it up for root using custom rules from Matthew Ahrenstein (only for Ubuntu 18.04 and newer)
  7. (Optional) Set DNS servers for /etc/resolv.conf and turn off the SystemD resolver

Variables

These variables are optional:

  1. ubuntu_base.dns_servers - A list of DNS servers to use instead of the SystemD resolver. (If not set, defaults will be used)
  2. ubuntu_base.search_domain - The search domain for resolv.conf. (This is needed if ubuntu_base.dns_servers is set!)
  3. ubuntu_base.tzsymlink - The local timezone symlink. (Both TZ variables must match)
  4. ubuntu_base.localtime - The path for the localtime symlink (Both TZ variables must match)

Testing

This role is fully tested using Test Kitchen with sample inventory data in this repository.
Check TESTING.md for details and instructions on testing.

Support This Ansible Role

Route 1337 LLC relies on donations for open-source projects. If you find this Ansible role helpful, please consider supporting us using the GitHub Sponsors button.

Thank you for your support!

Informazioni sul progetto

Various tweaks and basic prerequisites for Ubuntu systems along with a fancy bash prompt

Installa
ansible-galaxy install route1337.ubuntu_base
Licenza
mit
Download
187
Proprietario
Modern InfoSec, Zero Trust, and DevOps consulting for Web2 and Web3 clients.