GithubHelp home page GithubHelp logo

mitchellcash / ansible-anu Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 1.0 72 KB

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

License: MIT License

ansible playbook ubuntu

ansible-anu's Introduction

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.

ansible-anu's People

Contributors

mitchellcash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

epictetus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.