This repository contains the configuration and deployment scripts for setting up and managing webservers using Ansible. The project demonstrates the use of Ansible to deploy an Apache web server on multiple virtual machines (VMs), configure it to listen on port 8080, and serve a simple HTML page.
playbook.yml: Ansible playbook that installs and configures Apache on the VMs. inventory: Ansible inventory file specifying the target VMs. Documentation: A Word document with screenshots, setup instructions, and a demo of the project.
Installation of Apache web server Configuration of Apache to listen on a non-default port (8080) Deployment of a custom HTML page to the web server root
- To deply the webserver, use:
ansible-playbook -i inventory deploy.yml
- To undeploy the webserver, use:
ansible-playbook -i inventory undeploy.yml
- To run the playbook, use:
ansible-playbook -i inventory playbook.yml