Compile nginx
using ansible
.
- Nginx custom modules
lua-nginx-module
set-misc-nginx-module
ModSecurity-nginx
ngx-devel-kit
- Resty libraries:
lua-resty-core
lua-resty-lrucache
lua-resty-http
lua-resty-balancer
lua-resty-dns
lua-resty-cookie
lua-resty-lock
- Lua libraries:
cjson
ModSecurity
owasp-modsecurity-crs
luarocks
Build using ansible
.
Create a secret for sudo
password:
ansible-vault create secret
: Create a vault password- Add
ansible_become_pass: YOUR_SUDO_PASSWORD
- Add
echo "YOUR_VOULT_PASSWORD" > vault.txt
- Ubuntu:
ansible-playbook --check --vault-password-file=vault.txt ubuntu-playbook.yaml
- Ubuntu:
ansible-playbook --vault-password-file=vault.txt ubuntu-playbook.yaml