Skip to content

Automated remote nginx install and setup using Ansible

Notifications You must be signed in to change notification settings

fatcomma/nginsible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published