Skip to content

ANU is an automated and simple way to securely provision a A New Ubuntu machine using Ansible.

License

Notifications You must be signed in to change notification settings

MitchellCash/ansible-anu

Repository files navigation

ANU

CI

What is ANU

ANU (pronounced 'anew' as in A New Ubuntu) is an Ansible playbook to assist in provisioning a new Ubuntu machine. It depends on certain third-party Ansible roles and then extends them to offer a more opinionated new Ubuntu setup (see Features).

The goal of ANU is to provide a secure base Ubuntu system, while maintaining a high level of ease of use. This means certain additional security features provided by the Dependencies are reverted back to the system defaults to make the system easier to use. See vars/main.yml) for the list of overrides.

Features

  • Set server timezone to UTC
  • Configure UFW to allow traffic on the specified SSH port and enable UFW (default: 4160)
  • Prompts for a username, password & SSH public key and creates a new user in the "sudo" group

Dependencies

The goal of ANU is to provide a strong base security level while maintaining an acceptable ease of use. Any acceptable trade-offs made between ease of use and the secure defaults set by the dependencies and are outlined below:

Description Original Value Override Value
Maximum password age 60 99999 (disable)
Default permissions for new files 027 022

Requirements

ANU is tested on the following Ubuntu LTS releases:

  • Ubuntu 20.04 (Focal Fossa)
  • Ubuntu 22.04 (Jammy Jellyfish)
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:ansible/ansible
sudo apt install ansible-core

Quick Start

Once the requirements are installed, all you need to do is run the following commands to provision your new Ubuntu system:

# Install collection requirements.
ansible-galaxy collection install -r requirements.yml

# Run the ANU playbook.
ansible-playbook anu.yml

License

ANU is released under the terms of the MIT license. See LICENSE for more information or see https://opensource.org/licenses/MIT.

About

ANU is an automated and simple way to securely provision a A New Ubuntu machine using Ansible.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published