Ansible playbook to spawn 2 VMs. The nginx on VM1 should be configured to access the endpoint on VM2 on a specific port.
24 views
Skip to first unread message
Leviya bl
unread,
Oct 4, 2017, 1:42:12 AM10/4/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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.
J Hawkesworth
unread,
Oct 8, 2017, 8:41:27 AM10/8/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
This looks like a school assignment.
What have you got so far? What part do you need help with?
Worth looking on galaxy for roles that can set up the components you need.