Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

maruina/ansible-role-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: Nginx 0.1

Build Status
An Ansible role that configure nginx.

Download from Ansible Galaxy

ansible-galaxy install maruina.nginx

Usage

Override every parameters that you need to change.

nginx_sites_available:
  - my_blog
nginx_sites_enabled:
  - my_blog
nginx_sites:
  my_blog:
    - listen 80
    - root /var/www/my_blog
    - server_name www.myblog.com
    - location / {
        option value;
      }
  my_second_website:
    - listen 81
    - root /var/www/another_root
    - server_name samename.com
    - location / {
        autoindex on;
      }
    - another nginx option

Example Playbook

    - hosts: all
      roles:
        - { role: maruina.nginx }

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published