https://github.com/jpeer264/ansible-example
This is an ansible example to deploy a Node.js backend and a frontend
https://github.com/jpeer264/ansible-example
ansible deploy nginx nodejs
Last synced: about 2 months ago
JSON representation
This is an ansible example to deploy a Node.js backend and a frontend
- Host: GitHub
- URL: https://github.com/jpeer264/ansible-example
- Owner: JPeer264
- License: mit
- Created: 2017-06-04T10:50:29.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-06T14:22:14.000Z (about 9 years ago)
- Last Synced: 2024-11-15T03:57:31.559Z (over 1 year ago)
- Topics: ansible, deploy, nginx, nodejs
- Language: JavaScript
- Homepage:
- Size: 200 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-example
> Ansible example to publish a basic frontend with a Node.js backend
## What does it do?
> **Note:** your host machine should be Ubuntu 16.04
1. Connects to whatever is given in `./hosts`
1. Installs and setup `postgres`
1. Installs and setup `nginx`
1. Runs the Node.js application at the given `backend_entrypoint` variable via [forever](https://www.npmjs.com/package/forever)
1. Deploys the frontend on port `80` and `location /`
## Getting started
First make sure `ansible` is installed on your machine. [More Info](http://docs.ansible.com/ansible/intro_installation.html)
In this example the `example-frontend` and the `example-backend` are in the same folder, this should be avoided, so in "real life" a SCM should be used instead (e.g. via [ansible git module](http://docs.ansible.com/ansible/git_module.html)).
Make sure all your configuration variables, in `./group_vars/web`, fits your requirements.
## Usage
```sh
$ ansible-playbook webapp.yml
```
## LICENSE
MIT © [Jan Peer Stöcklmair](https://www.jpeer.at)