Skip to content

Playbook: Server Deployment from Scratch

Goal

Provision and configure a new server with secure and automated baseline.

Steps

  1. Provision VM or bare metal
  2. Proxmox template, ISO, or cloud-init

  3. Bootstrap access

    useradd -m username
    usermod -aG wheel username
    

  4. Harden SSH and enable firewall

  5. Disable root login
  6. Setup firewalld rules

  7. Install and run Ansible role

    ansible-playbook -i inventory bootstrap.yml
    

  8. Tag and document

  9. Hostname, IP, purpose
  10. Add to monitoring

Output

Server in production with baseline config, secure access, and monitoring enabled.