fatcomma / nginsible

Automated remote nginx install and setup using Ansible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nginsible

This script installs/configures nginx to serve a page on http://localhost:8080 across one or more target hosts via Ansible.

Tested on Debian/Ubuntu and RHEL/CentOS distributions.

Prerequisites

Before deploying you'll need to install Ansible through pip:

# pip install ansible

You can also install through distribute/setuptools:

# easy_install ansible

Deploying

Define target hosts

First, edit the hosts file and add target hostnames (by default hosts only contains a single entry localhost).

These can be in the form of domains (web.example.com) or IP addresses (192.168.0.1).

For details see Ansible's documentation on Hosts and Groups.

Run deploy script

NOTE: The [user] must exist on the target system and must have sudo capabilities.

Once the target hosts have been defined use ./deploy [user] to run.

About

Automated remote nginx install and setup using Ansible


Languages

Language:HTML 47.5%Language:Nginx 43.2%Language:Shell 9.3%