Skip to content

IAmHimanshuAnand/B9IS121_2324_TMD2

Repository files navigation

Module: B9IS121 - Network Systems and Administration

Purpose: Create an Ansible Playbook that will configure Docker container and deploy apache server with webpage running on 172.168.10.0/30 subnet

Instructions

This playbook was first tested and implemented on localhost (Ubuntu 22.04LTS WSL for Windows 10)
secondly, it was implemented on Azure VM (for students plan)
thirdly, it was improved using Bash script in Github Codespaces (To avoid installing Linux Machine for Control Node) The below steps will guide you using the third way i.e. using github codespaces

STEPS: (For Ubuntu 20.04 LTS using Github Codespaces)

  1. Create Azure VM (Ubuntu 22.04 LTS). (Azure for students offers limited free hours on cloud)
  2. Setup DNS name and Start VM
  3. Open Github Codespaces
  4. Run bash script
  5. Check web page in browser

STEP 1: Create Azure VM

screencapture-portal-azure-2024-04-05-00_08_02 screencapture-portal-azure-2024-04-05-00_08_02

STEP 2: Setup DNS name and Start VM

image image

STEP 3: Open Codespaces

image

Press Continue working in codespaces and select 2GB and 16GB option

image

STEP 4: Run $ bash init.sh

screencapture-fictional-space-eureka-7467v6pw7xqcr6qj-github-dev-2024-04-05-00_23_44

STEP 5: Check Webpage in Browser

1. Using Public IP Address:

image

2. Using Domain name:

image

Note: Last 4 Ansible tasks checks for Subnet and HTML webpage

References:

About

Network Systems and Administration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published