plumelo.nginx_src
nginx_src
This role installs the nginx web server using the source code from the nginx mainline repository. You can choose the version of nginx and the modules you want to download and compile.
Installation
To install the nginx_src role, run the following command:
ansible-galaxy install plumelo.nginx_src
Role Variables
Here are the variables you can use with this role, along with a short description of each. You can find all variables in defaults/main.yml.
# The version of nginx to install
nginx_src_version: 1.13.3
# The directory where nginx will be downloaded and built
nginx_src_build_path: '/root/nginx-src'
# A list of modules to include during the nginx compilation
nginx_src_modules:
- name: ngx_cache_purge
url: https://github.com/FRiCKLE/ngx_cache_purge/archive/2.3.tar.gz
- name: ngx_pagespeed
url: https://github.com/pagespeed/ngx_pagespeed/archive/v1.12.34.2-stable.tar.gz
dynamic: true # this will use --add-dynamic-module and place the compiled module in the nginx installation folder
# module dependencies to download and add to the build path
deps:
- name: psol
url: https://dl.google.com/dl/page-speed/psol/1.12.34.2-x64.tar.gz
# Extra arguments for nginx compilation
nginx_src_args: []
# Remove the build directory after installation is complete
nginx_src_cleanup: true
Installa
ansible-galaxy install plumelo.nginx_src
Licenza
Unknown
Download
589
Proprietario