Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cdriehuys/ansible-role-nginx
Ansible role for installing and configuring nginx.
https://github.com/cdriehuys/ansible-role-nginx
ansible-role nginx
Last synced: 10 days ago
JSON representation
Ansible role for installing and configuring nginx.
- Host: GitHub
- URL: https://github.com/cdriehuys/ansible-role-nginx
- Owner: cdriehuys
- License: mit
- Created: 2017-04-08T17:25:56.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-08T21:40:18.000Z (almost 8 years ago)
- Last Synced: 2024-11-10T09:43:25.931Z (2 months ago)
- Topics: ansible-role, nginx
- Language: Shell
- Size: 13.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
cdriehuys.nginx
=========Install and configure NGINX.
Requirements
------------None.
Role Variables
--------------The following are the variables used by the role and their defaults.
```YAML
apt_cache_time: 3600nginx_user: nginx
nginx_user_groups: []nginx_conf_root: /etc/nginx
nginx_conf_path: "{{ nginx_conf_root }}/nginx.conf"
nginx_site_conf_name: "{{ inventory_hostname }}.conf"
nginx_site_conf: "{{ nginx_conf_root }}/sites-available/{{ nginx_site_conf_name }}"
nginx_enabled_site_conf: "{{ nginx_conf_root }}/sites-enabled/{{ nginx_site_conf_name }}"nginx_site_root: /var/www/{{ inventory_hostname }}
nginx_site_root_mode: 0755
nginx_site_root_file_mode: 0644nginx_site_servers: []
# Here's an example server entry
nginx_site_servers:
- name: example.com
listen: 80
extra_params: |
location / {
alias /path/to/files;
}
```Dependencies
------------None.
Example Playbook
----------------To run the role, include it as follows.
- hosts: all
roles:
- cdriehuys.nginxLicense
-------MIT
Author Information
------------------Chathan Driehuys ([email protected])