Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sansible/nginx
See https://github.com/sansible/sansible for more information
https://github.com/sansible/nginx
ansible ansible-role ansible-roles nginx
Last synced: 12 days ago
JSON representation
See https://github.com/sansible/sansible for more information
- Host: GitHub
- URL: https://github.com/sansible/nginx
- Owner: sansible
- License: mit
- Created: 2016-01-28T16:18:53.000Z (almost 9 years ago)
- Default Branch: develop
- Last Pushed: 2023-01-24T23:25:26.000Z (almost 2 years ago)
- Last Synced: 2023-08-05T07:51:09.387Z (over 1 year ago)
- Topics: ansible, ansible-role, ansible-roles, nginx
- Language: Makefile
- Homepage:
- Size: 46.9 KB
- Stars: 2
- Watchers: 8
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nginx
Master: [![Build Status](https://travis-ci.org/sansible/nginx.svg?branch=master)](https://travis-ci.org/sansible/nginx)
Develop: [![Build Status](https://travis-ci.org/sansible/nginx.svg?branch=develop)](https://travis-ci.org/sansible/nginx)* [Installation and Dependencies](#installation-and-dependencies)
* [Tags](#tags)
* [Examples](#examples)Installs and configures nginx.
## Installation and Dependencies
This role has no dependencies.
To install run `ansible-galaxy install sansible.nginx` or add this to your
`roles.yml````YAML
- name: sansible.nginx
version: v3.0.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:
```YAML
- name: Install Nginx
hosts: sandboxpre_tasks:
- name: Update apt
become: yes
apt:
cache_valid_time: 1800
update_cache: yes
tags:
- buildroles:
- role: sansible.nginx
```The default access log format is in JSON, to use the standard txt format:
```YAML
- name: Install Nginx
hosts: sandboxpre_tasks:
- name: Update apt
become: yes
apt:
cache_valid_time: 1800
update_cache: yes
tags:
- buildroles:
- role: sansible.nginx
sansible_nginx_access_log_format: standard
```