This example is an extension of the Node.js example. Please read through the directions in that example's README to get this example running locally through Vagrant.
The primary difference in this example (as explained in Ansible for DevOps) is that the actual installation of Node.js is done in a new nodejs
role.
After running vagrant up
, perform the following steps to access the app via a hostname:
- Edit your hosts file, adding the line
192.168.55.56 nodejs-role.test
so you can connect to the VM. - Open your browser and access http://nodejs-role.test/.
This project was created by Jeff Geerling as an example for Ansible for DevOps.