Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d3pre5s/ansible-role-nginx
https://github.com/d3pre5s/ansible-role-nginx
ansible ansible-galaxy ansible-role ansible-role-nginx nginx
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/d3pre5s/ansible-role-nginx
- Owner: d3pre5s
- Created: 2021-07-04T21:39:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-04T22:04:56.000Z (over 3 years ago)
- Last Synced: 2023-07-17T20:25:55.378Z (over 1 year ago)
- Topics: ansible, ansible-galaxy, ansible-role, ansible-role-nginx, nginx
- Language: Jinja
- Homepage:
- Size: 8.79 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Ansible Role NGINX
=========A brief description of the role goes here.
Requirements
------------Any pre-requisites that may not be covered by Ansible itself or the role should
be mentioned here. For instance, if the role uses the EC2 module, it may be a
good idea to mention in this section that the boto package is required.Role Variables
--------------defaults file for ansible-role-nginx
```
#install
nginx_default_release: ""
nginx_ppa_use: true
nginx_ppa_version: stable
nginx_ppa_source: "nginx"
nginx_package_name: "nginx"nginx_remove_default: false
# nginx custom configuration
nginx_replace_nginxconf: true
nginx_conf_path: "nginx.conf.j2"
nginx_templates_path: "{{ role_path }}/templates"# nginx.conf
# nginx.conf:http
nginx_client_max_body_size: "64m"# nginx.conf:extra
nginx_extra_conf_options: ""
# Example extra main options, used within the main nginx's context:
# nginx_extra_conf_options: |
# env VARIABLE;
# include /etc/nginx/main.d/*.conf;nginx_extra_http_options: ""
# Example extra http options, printed inside the main server http config:
# nginx_extra_http_options: |
# proxy_buffering off;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Scheme $scheme;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header Host $http_host;# htpasswd
nginx_htpasswd: []
# - user: demo
# password: demo# dhparams
nginx_dhparam: false
#nginx_dhparam_file: /etc/nginx/dhparams.pem (optional)
#nginx_dhparam_size: 4096 (optional)
```Dependencies
------------A list of other roles hosted on Galaxy should go here, plus any details in
regards to parameters that may need to be set for other roles, or variables that
are used from other roles.Example Playbook
----------------- hosts: web
roles:
- nginxLicense
-------BSD
Author Information
------------------Konstantin Deepezh, https://t.me/deusops