sansible/nginx


License: MIT

Language: Makefile

Keywords: ansible, ansible-role, ansible-roles, nginx


Nginx

Master: Build Status Develop: Build Status

Installs and configures nginx.

ansible.cfg

This role is designed to work with merge "hash_behaviour". Make sure your ansible.cfg contains these settings

[defaults]
hash_behaviour = merge

Installation and Dependencies

This role has no dependencies.

To install run ansible-galaxy install sansible.nginx or add this to your roles.yml

- name: sansible.nginx
  version: v1.1

and run ansible-galaxy install -p ./roles -r roles.yml

Tags

This role uses two tags: build and configure

  • build - Installs Nginx.
  • configure - (re-)Configures Nginx.

Examples

To simply install Nginx:

- name: Install Nginx
  hosts: sandbox

  pre_tasks:
    - name: Update apt
      become: yes
      apt:
        cache_valid_time: 1800
        update_cache: yes
      tags:
        - build

  roles:
    - role: sansible.nginx

The default access log format is in JSON, to use the standard txt format:

- name: Install Nginx
  hosts: sandbox

  pre_tasks:
    - name: Update apt
      become: yes
      apt:
        cache_valid_time: 1800
        update_cache: yes
      tags:
        - build

  roles:
    - role: sansible.nginx
      nginx:
        access_log_format: standard

Project Statistics

Sourcerank 4
Repository Size 11.7 KB
Stars 1
Forks 1
Watchers 7
Open issues 0
Dependencies 0
Contributors 3
Tags 7
Created
Last updated
Last pushed

Top Contributors See all

Wojtek David Reed Hagen Kuehn

Recent Tags See all

v1.1.1 February 17, 2017
v1.1 February 17, 2017
v1.0.3 February 16, 2017
v1.0.2 October 03, 2016
v1.0.1 October 03, 2016
v1.0 October 03, 2016
v1.0.0 January 23, 2016

Something wrong with this page? Make a suggestion

Last synced: 2017-04-13 20:39:43 UTC

Login to resync this repository