geerlingguy / ansible-for-devops

Ansible for DevOps examples.
https://www.ansiblefordevops.com
MIT License
8.51k stars 3.48k forks source link

Chapter 4, node.js app inconsistency #584

Open piotrlg opened 6 months ago

piotrlg commented 6 months ago

Page 63, second edition ebook.

ansible-playbook playbook.yml \
--extra-vars="node_apps_location=/usr/local/opt/node"

This will not work OTB, missing inventory file.

Also this introduction with nodejs app is a bit confusing as relying only on book you will have to figure out how to reach the nodejs.test VM host (it is well explained in the git repo only).

Alsovagrant up will provision everything as this is the setup in Vagrantfile. This chapter is not explaining this Vagrant setup and you introduce the provisioning here.