2018-01-10 23:40:01 +01:00
|
|
|
---
|
2021-12-07 02:47:13 +01:00
|
|
|
nginx_setup_vars: [
|
|
|
|
'install', 'uninstall', 'upgrade',
|
|
|
|
]
|
|
|
|
|
|
|
|
nginx_default_setup: install
|
|
|
|
|
|
|
|
nginx_state_vals:
|
|
|
|
install: present
|
|
|
|
uninstall: absent
|
|
|
|
upgrade: latest
|
|
|
|
|
|
|
|
nginx_state: "{{ nginx_state_vals[nginx_setup] | default(nginx_state_vals[nginx_default_setup]) }}"
|
|
|
|
|
2020-09-15 21:27:06 +02:00
|
|
|
# Supported NGINX Open Source distributions
|
|
|
|
# https://nginx.org/en/docs/install.html
|
|
|
|
nginx_distributions: [
|
2021-08-23 16:35:02 +02:00
|
|
|
'Alpine', 'Amazon', 'CentOS', 'Debian', 'FreeBSD', 'RedHat', 'SLES', 'Ubuntu',
|
2020-09-15 21:27:06 +02:00
|
|
|
'NetBSD', 'OpenBSD', 'DragonFlyBSD', 'HardenedBSD',
|
|
|
|
]
|
|
|
|
|
|
|
|
# Supported NGINX Plus distributions
|
|
|
|
# https://docs.nginx.com/nginx/technical-specs/
|
|
|
|
nginx_plus_distributions: [
|
|
|
|
'Alpine', 'Amazon', 'CentOS', 'Debian', 'FreeBSD', 'OracleLinux', 'RedHat', 'SLES', 'Ubuntu',
|
|
|
|
]
|
|
|
|
|
|
|
|
# Default NGINX signing key
|
2020-11-17 16:40:53 +01:00
|
|
|
nginx_default_signing_key_pgp: https://nginx.org/keys/nginx_signing.key
|
2022-02-16 12:42:21 +01:00
|
|
|
nginx_default_signing_key_rsa_pub: https://nginx.org/keys/nginx_signing.rsa.pub
|
2020-09-15 21:27:06 +02:00
|
|
|
|
|
|
|
# Default NGINX Open Source repositories
|
2021-12-03 07:59:36 +01:00
|
|
|
nginx_default_repository_alpine: "@nginx http://nginx.org/packages/{{ (nginx_branch == 'mainline') | ternary('mainline/', '') }}\
|
2020-11-17 16:40:53 +01:00
|
|
|
alpine/v{{ ansible_facts['distribution_version'] | regex_search('^[0-9]+\\.[0-9]+') }}/main"
|
2021-08-23 16:35:02 +02:00
|
|
|
nginx_default_repository_amazon: "https://nginx.org/packages/{{ (nginx_branch == 'mainline') | ternary('mainline/', '') }}/amzn2/$releasever/$basearch"
|
2020-11-17 16:40:53 +01:00
|
|
|
nginx_default_repository_debian:
|
2021-12-03 07:59:36 +01:00
|
|
|
- "deb [arch={{ (ansible_facts['architecture'] == 'aarch64') | ternary('arm64', 'amd64') }} signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/{{ (nginx_branch == 'mainline') | ternary('mainline/', '') }}\
|
2020-11-17 16:40:53 +01:00
|
|
|
{{ ansible_facts['distribution'] | lower }}/ {{ ansible_facts['distribution_release'] }} nginx"
|
2021-12-03 07:59:36 +01:00
|
|
|
- "deb-src [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://nginx.org/packages/{{ (nginx_branch == 'mainline') | ternary('mainline/', '') }}\
|
2020-11-17 16:40:53 +01:00
|
|
|
{{ ansible_facts['distribution'] | lower }}/ {{ ansible_facts['distribution_release'] }} nginx"
|
|
|
|
nginx_default_repository_redhat: "https://nginx.org/packages/{{ (nginx_branch == 'mainline') | ternary('mainline/', '') }}\
|
|
|
|
{{ (ansible_facts['distribution'] == 'CentOS') | ternary('centos', 'rhel') }}/\
|
|
|
|
{{ ansible_facts['distribution_major_version'] }}/$basearch/"
|
|
|
|
nginx_default_repository_suse: "https://nginx.org/packages/{{ (nginx_branch == 'mainline') | ternary('mainline/', '') }}\
|
|
|
|
sles/{{ ansible_facts['distribution_major_version'] }}"
|
2020-09-15 21:27:06 +02:00
|
|
|
|
|
|
|
# Default NGINX Plus repositories
|
2021-05-04 20:14:51 +02:00
|
|
|
nginx_plus_default_repository_alpine: "https://pkgs.nginx.com/plus/alpine/v{{ ansible_facts['distribution_version'] | regex_search('^[0-9]+\\.[0-9]+') }}/main"
|
|
|
|
nginx_plus_default_repository_amazon: "https://pkgs.nginx.com/plus/amzn{{ (ansible_facts['distribution_major_version'] is version('2', '==')) | ternary('2', '') }}/$releasever/$basearch"
|
2021-12-03 07:59:36 +01:00
|
|
|
nginx_plus_default_repository_debian: "deb [arch={{ (ansible_facts['architecture'] == 'aarch64') | ternary('arm64', 'amd64') }} signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://pkgs.nginx.com/plus/{{ ansible_facts['distribution'] | lower }} {{ ansible_facts['distribution_release'] }} nginx-plus"
|
2021-05-04 20:14:51 +02:00
|
|
|
nginx_plus_default_repository_freebsd: "https://pkgs.nginx.com/plus/freebsd/${ABI}/latest"
|
|
|
|
nginx_plus_default_repository_redhat: "https://pkgs.nginx.com/plus/{{ (ansible_facts['distribution'] == 'CentOS') | ternary('centos', 'rhel') }}/\
|
2020-11-17 16:40:53 +01:00
|
|
|
{{ (ansible_facts['distribution_version'] is version('7.4', '>=')
|
2020-11-05 15:37:40 +01:00
|
|
|
and ansible_facts['distribution_version'] is version('8', '<')) | ternary('7.4', ansible_facts['distribution_major_version']) }}/$basearch/"
|
2021-05-04 20:14:51 +02:00
|
|
|
nginx_plus_default_repository_suse: "https://pkgs.nginx.com/plus/sles/{{ ansible_facts['distribution_major_version'] }}\
|
2020-11-05 15:37:40 +01:00
|
|
|
?ssl_clientcert=/etc/ssl/nginx/nginx-repo-bundle.crt&ssl_verify=peer"
|
2020-09-15 21:27:06 +02:00
|
|
|
|
|
|
|
# Alpine dependencies
|
|
|
|
nginx_alpine_dependencies: [
|
2022-02-15 18:49:40 +01:00
|
|
|
'ca-certificates', 'coreutils', 'openssl', 'pcre2',
|
2020-09-15 21:27:06 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
# Debian dependencies
|
|
|
|
nginx_debian_dependencies: [
|
2021-10-06 00:20:23 +02:00
|
|
|
'apt-transport-https', 'ca-certificates',
|
2020-09-15 21:27:06 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
# Red Hat dependencies
|
|
|
|
nginx_redhat_dependencies: [
|
2021-10-06 00:20:23 +02:00
|
|
|
'ca-certificates',
|
2020-09-15 21:27:06 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
# SLES dependencies
|
|
|
|
nginx_sles_dependencies: [
|
|
|
|
'ca-certificates',
|
|
|
|
]
|
|
|
|
|
|
|
|
# FreeBSD dependencies
|
|
|
|
nginx_freebsd_dependencies: [
|
2020-09-20 12:15:28 +02:00
|
|
|
'security/ca_root_nss',
|
2020-09-15 21:27:06 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
# Default locations and versions when 'nginx_install_from' is set to 'source'
|
2022-02-16 12:42:21 +01:00
|
|
|
pcre_version: pcre-8.45
|
2020-09-15 21:27:06 +02:00
|
|
|
zlib_version: zlib-1.2.11
|
2022-02-16 12:42:21 +01:00
|
|
|
openssl_version: openssl-1.1.1m
|
2020-09-15 21:27:06 +02:00
|
|
|
|
2021-10-07 14:05:04 +02:00
|
|
|
# Supported NGINX Open Source dynamic modules
|
2020-09-15 21:27:06 +02:00
|
|
|
nginx_modules_list: [
|
|
|
|
'geoip', 'image-filter', 'njs', 'perl', 'xslt',
|
|
|
|
]
|
|
|
|
|
2021-10-07 14:05:04 +02:00
|
|
|
# Supported NGINX Plus dynamic modules
|
2020-09-15 21:27:06 +02:00
|
|
|
nginx_plus_modules_list: [
|
2022-02-15 18:49:40 +01:00
|
|
|
'auth-spnego', 'brotli', 'encrypted-session', 'geoip', 'geoip2', 'headers-more', 'image-filter',
|
2021-05-04 20:14:51 +02:00
|
|
|
'lua', 'njs', 'opentracing', 'passenger', 'perl', 'prometheus', 'rtmp', 'subs-filter', 'xslt',
|
2020-09-15 21:27:06 +02:00
|
|
|
]
|