stefano-pogliani.upstream-nginx
upstream-nginx
Install NGINX using the upstream repos. If a distribution is unsupported fallback to the distro's repos.
Requirements
Nothing.
Role Variables
| Variable | Description | Default |
|---|---|---|
upstream_nginx_package |
The name of the package to install | 'nginx' |
upstream_nginx_service_enabled |
Should the service be enabled? | 'yes' |
upstream_nginx_service_manage |
Should the service be managed? | true |
upstream_nginx_service_state |
Should the service be running? | 'started' |
upstream_nginx_service |
The name of the NGINX service | 'nginx' |
upstream_nginx_set_capabilities |
Allow nginx to bind to privileged ports without root | false |
Dependencies
None.
Example Playbook
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: webs
roles:
- role: upstream-nginx
License
MIT
Testing
This role uses test-kitchen and kitchen-ansible.
- Install gems:
bundle install bundle install --path=.vendor --binstubs - Run kitchen:
./bin/kitchen test
Install
ansible-galaxy install stefano-pogliani.upstream-nginxLicense
mit
Downloads
84
Owner
