projects

Cloud-I

Idempotent Infrastructure-as-Code (IaC) automation using Ansible to provision cloud virtual machines, configure Docker, and deploy TLS-secured web stacks.

RoleDevOps Engineer
Client42 Project
Year2025
Technologies
AnsiblePythonDigitalOcean API+4
Cloud-I cover

Overview

End-to-end automation provisioning a DigitalOcean VM with Docker Compose and TLS-terminated WordPress.

The Challenge

Deploying infrastructure manually is inherently fragile, unscalable, and undocumented by default. The objective was to eliminate all human intervention by writing an idempotent automation pipeline. The script must be able to securely interact with cloud provider APIs, provision a server, harden the OS, and orchestrate a multi-container application—all from a single terminal command.

The Solution

Ansible roles automating Docker setup, Nginx/WordPress/MariaDB orchestration with persistent storage on DigitalOcean with DNS and TLS.

Architecture & Topology

Technical Deep Dive

Ansible Playbook Orchestration

Authored comprehensive, idempotent Ansible playbooks. The playbooks guarantee a specific end-state regardless of the server's initial condition.

Cloud Provider Integration

Interfaced directly with DigitalOcean's APIs via Ansible to dynamically provision Droplets (VMs), configure SSH key injection, and set up firewall rules.

Container Lifecycle Management

Automated the installation of the Docker engine and Docker Compose, orchestrating an Nginx reverse proxy, MariaDB database, and WordPress application.

Automated Security

Implemented fully automated TLS certificate generation and termination at the Nginx reverse proxy layer, ensuring encrypted web traffic.