Skip to content

stvnfx/ansible-nginx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role For NGINX

Build Status Current Version

This Ansible role that installs nginx and its dependencies:

  • libpcre3
  • libpcre3-dev
  • libgd2-xpm-dev
  • libgeoip-dev
  • libpam0g-dev
  • zlibc
  • zlib1g
  • zlib1g-dev

This role requires self-signed certs placed in files/ssl or third-party certs placed in {{ app_name }}/files/ssl/ (found in the root of the ansible roles directory).

Finally it sets the default timezone for the server. We use this as the base image for all our Ruby and Node.js applications.

Installation

$ ansible-galaxy install crushlovely.nginx

Variables

nginx_version: 1.6.2
app_name: **name of your app**
upstream_port: 8080
domains:
  - "domain.com"

Usage

Once this role is installed on your system, include it in the roles list of your playbook.

- hosts: localhost
  roles:
    - { role: crushlovely.nginx, ssl: 'yes' }

You can also add a vars folder to your project folder and have your variables served by adding them to a file and calling it in your playbook.

- hosts: localhost
...
  vars_files:
    - vars/default_vars.yml
...

Dependencies

None

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%