galaxyproject/ansible-nginx

Name: ansible-nginx

Owner: Galaxy Project

Description: An Ansible role for managing an nginx server.

Created: 2015-04-01 19:14:34.0

Updated: 2017-06-15 10:19:24.0

Pushed: 2017-11-28 21:39:20.0

Homepage: null

Size: 17

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

nginx

An Ansible role for installing and managing nginx servers. This role can install a version of nginx that includes the nginx upload module, which Galaxy uses, on Enterprise Linux-based systems only. Adding support for the Galaxy builds of nginx on Debian-based systems is a TODO item.

Requirements

This role installs nginx from APT on Debian systems, EPEL on Enterprise Linux systems, or pkgin on SmartOS. Other systems and installation methods are not supported.

Role Variables
Optional variables

These variables control the use of SSL. If unset, SSL will not be enabled. See Example Playbook for usage.

For legacy reasons, nginx_conf_ssl_certificate* can be absolute paths to the files on the remote host. If this is the case, the certs are searched for in nginx_ssl_src_dir with the directory portion of the path stripped. If the path is not absolute, it is relative to nginx_ssl_src_dir for the source, and relative to nginx_ssl_conf_dir for the destination.

Dependencies

Although not a requirement, geerlingguy.repo-epel can be used to enable EPEL with Ansible.

Example Playbook

Install nginx with SSL:

me: Install and configure nginx
sts: webservers
mote_user: root
rs:
sslkeys:
  'snakeoil_privatekey.pem': |
    -----BEGIN PRIVATE KEY-----
    MIIE...
    -----END PRIVATE KEY-----
nginx_conf_ssl_certificate: snakeoil_cert.pem
nginx_conf_ssl_certificate_key: snakeoil_privatekey.pem
nginx_ssl_src_dir: files/ssl
nginx_configs:
  - vhost1
  - vhost2
nginx_conf_http:
  client_max_body_size: 1g
les:
- galaxyproject.nginx
License

Academic Free License (“AFL”) v. 3.0

Author Information

Nate Coraor


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.