|
2 | 2 | - name: Setup Debian and Ubuntu NGINX App Protect repository |
3 | 3 | apt_repository: |
4 | 4 | repo: deb [arch=amd64] https://plus-pkgs.nginx.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} nginx-plus |
5 | | - filename: nginx-plus |
| 5 | + filename: nginx-app-protect |
6 | 6 | update_cache: false |
7 | 7 | state: "{{ nginx_app_protect_license_status | default ('present') }}" |
8 | 8 |
|
9 | | -- name: Setup Debian and Ubuntu NGINX App Protect signatures repository |
| 9 | +- name: Setup Debian and Ubuntu NGINX App Protect security updates repository |
10 | 10 | apt_repository: |
11 | | - repo: deb [arch=amd64] https://app-protect-sigs.nginx.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} nginx-plus |
12 | | - filename: app-protect-sigs |
| 11 | + repo: deb [arch=amd64] https://app-protect-security-updates.nginx.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} nginx-plus |
| 12 | + filename: app-protect-security-updates |
13 | 13 | update_cache: false |
14 | 14 | state: "{{ nginx_app_protect_license_status | default ('present') }}" |
15 | 15 |
|
|
25 | 25 | state: "{{ nginx_app_protect_license_status | default ('present') }}" |
26 | 26 | mode: 0444 |
27 | 27 |
|
28 | | -- name: Setup NGINX App Protect signatures license |
| 28 | +- name: Setup NGINX App Protect security updates license |
29 | 29 | blockinfile: |
30 | | - path: /etc/apt/apt.conf.d/90app-protect-sigs |
| 30 | + path: /etc/apt/apt.conf.d/90app-protect-security-updates |
31 | 31 | create: true |
32 | 32 | block: | |
33 | | - Acquire::https::app-protect-sigs.nginx.com::Verify-Peer "true"; |
34 | | - Acquire::https::app-protect-sigs.nginx.com::Verify-Host "true"; |
35 | | - Acquire::https::app-protect-sigs.nginx.com::SslCert "/etc/ssl/nginx/{{ nginx_app_protect_license.certificate | basename }}"; |
36 | | - Acquire::https::app-protect-sigs.nginx.com::SslKey "/etc/ssl/nginx/{{ nginx_app_protect_license.key | basename }}"; |
| 33 | + Acquire::https::app-protect-security-updates.nginx.com::Verify-Peer "true"; |
| 34 | + Acquire::https::app-protect-security-updates.nginx.com::Verify-Host "true"; |
| 35 | + Acquire::https::app-protect-security-updates.nginx.com::SslCert "/etc/ssl/nginx/{{ nginx_app_protect_license.certificate | basename }}"; |
| 36 | + Acquire::https::app-protect-security-updates.nginx.com::SslKey "/etc/ssl/nginx/{{ nginx_app_protect_license.key | basename }}"; |
37 | 37 | state: "{{ nginx_app_protect_license_status | default ('present') }}" |
38 | 38 | mode: 0444 |
39 | 39 |
|
|
0 commit comments