By Raghu Raj
The script can spawn VMs that are just 2 virtual box instances (preferred) or 2 Amazon AMI instances. Ubuntu 14.04 should be the OS on both VM’s. On VM1, the script should install nginx. On VM2, the script should deploy a web server (Apache / Rails / node.js server) to serve any static content via a REST endpoint. The nginx on VM1 should be configured to access the endpoint on VM2 on a specific port. Only the necessary port on VM2 should be opened and all other ports must be disabled. On accessing the route specified in the nginx config on VM1, nginx process must serve the static content hosted on the endpoint of VM2. The setup and provisioning must be completely automated using Ansible
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I am new bee in ansible, Please suggest solution for this question.
Thanks and Regards
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.