Skip to content

nick-nsc/ansible-vps-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible: Virtual Private Server Setup

Disclaimer:
This playbook and its roles are only tested for Ubuntu 22.04 systems!

Roles

Hardening

A role to harden your Ubuntu 22.04 system.
This role was built using CIS Ubuntu Linux 22.04 LTS Benchmark v1.0.0 as a guide.

Task files contain configuration for:

  • AppArmor
  • Auditd
  • Cron
  • Iptables
  • journald
  • sshd
  • sysctl
  • timesyncd
  • unnecessary services

Docker

This role installs the latest docker and docker compose versions.
It also adds the specified users to the docker group.

Usage

Install the requirements:

ansible-galaxy install -r requirements.yml

Edit the inventory file as needed.
Edit the defaults variables per role as needed.

Execute the whole playbook or selected tasks by setting tags:

e.g.
ansible-playbook -i inventory vps.yml
ansible-playbook -i inventory vps.yml --tags "sysctl,docker"

Releases

No releases published

Packages

No packages published

Languages