Lab

Ansible Linux Server Baseline

Use Ansible to apply the same basic user, package, SSH, firewall, and service settings to fresh Linux hosts.

  • Ansible
  • Ubuntu
  • Linux
  • Automation
  • Hardening

Scenario

This lab explores how I’d set up a few new Linux servers with the same documented baseline.

Challenge

The playbook should be easy to read, safe to run again, and clear about which settings are shared and which differ by host.

Approach

I’d split the work into roles for packages, admin users, SSH, firewall rules, and services. Shared defaults and host-specific settings would be kept separate, and secrets would stay out of the repository.

Verification

I’d run the playbook on disposable hosts, inspect the result, then run it again to catch unexpected changes. Before using it elsewhere, I’d document prerequisites, supported distributions, and how to recover if a change goes wrong.

Back to all works

Open to opportunities

Have a project or role in mind?

Whether you’re hiring or need help with infrastructure, web development, or design, let’s talk.