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.
Before deploying you'll need to install Ansible through pip:
# pip install ansible
You can also install through distribute/setuptools:
# easy_install ansible
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.
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.