Nginx installation.
Nginx installation.
You must provide your own configuration templates.
nginx_package_version
is an exact package version, e.g. 1.9.15-1~trusty
.nginx_conf_templates
is an array of config templates (see Example Playbook).None.
- hosts: servers
roles:
- role: pkorobeinikov.nginx
nginx_package_version: 1.9.15-1~trusty
nginx_conf_templates:
- { src: nginx/nginx.conf.j2, dest: /etc/nginx/nginx.conf }
- { src: nginx/conf.d/app.conf.j2, dest: /etc/nginx/conf.d/app.conf }
BSD, MIT