Source: sagar-gadewar.medium.com

Deploying a Node.js app using Ansible

Category: Data, nginx, automation, ansible

Playbooks are one of the core features of Ansible and tell Ansible what to execute. They are like a to-do list for Ansible that contains a list of tasks.Module: Basically, a module is a command or set of similar Ansible commands meant to be executed on the client-sideTask: A task is a section that consists of a single procedure to be completedInventory: File containing data about the ansible client servers. Intention of this blog is not to tell you how to deploy node application on server.

I am trying to share my experience that might help you to get familiarity with some amazing ansible modules like git, npm, file etc.

If you are not fan of git clone on EC2 you could locally build your node app and copy to remote server create nginx configuration file

Related Articles