|
1 | 1 | ---
|
2 |
| -- name: (Alpine Linux) {{ nginx_license_status is defined | ternary('Remove', 'Configure') }} NGINX Plus repository |
| 2 | +- name: (Alpine Linux) {{ nginx_app_protect_license_status is defined | ternary('Remove', 'Configure') }} NGINX Plus repository |
3 | 3 | lineinfile:
|
4 | 4 | path: /etc/apk/repositories
|
5 | 5 | insertafter: EOF
|
6 | 6 | line: "{{ nginx_plus_repository | default(nginx_plus_default_repository_alpine) }}"
|
7 |
| - state: "{{ nginx_license_status | default ('present') }}" |
| 7 | + state: "{{ nginx_app_protect_license_status | default ('present') }}" |
8 | 8 | when: nginx_app_protect_manage_repo | bool
|
9 | 9 |
|
10 |
| -- name: (Alpine Linux) {{ nginx_license_status is defined | ternary('Remove', 'Configure') }} NGINX App Protect WAF repository |
| 10 | +- name: (Alpine Linux) {{ nginx_app_protect_license_status is defined | ternary('Remove', 'Configure') }} NGINX App Protect WAF repository |
11 | 11 | lineinfile:
|
12 | 12 | path: /etc/apk/repositories
|
13 | 13 | insertafter: EOF
|
14 | 14 | line: "{{ nginx_app_protect_repository | default(nginx_app_protect_default_repository_alpine) }}"
|
15 |
| - state: "{{ nginx_license_status | default ('present') }}" |
| 15 | + state: "{{ nginx_app_protect_license_status | default ('present') }}" |
16 | 16 | when: nginx_app_protect_manage_repo | bool
|
17 | 17 |
|
18 |
| -- name: (Alpine Linux) {{ nginx_license_status is defined | ternary('Remove', 'Configure') }} NGINX App Protect WAF security updates repository |
| 18 | +- name: (Alpine Linux) {{ nginx_app_protect_license_status is defined | ternary('Remove', 'Configure') }} NGINX App Protect WAF security updates repository |
19 | 19 | lineinfile:
|
20 | 20 | path: /etc/apk/repositories
|
21 | 21 | insertafter: EOF
|
22 | 22 | line: "{{ nginx_app_protect_security_updates_repository | default(nginx_app_protect_security_updates_default_repository_alpine) }}"
|
23 |
| - state: "{{ nginx_license_status | default ('present') }}" |
| 23 | + state: "{{ nginx_app_protect_license_status | default ('present') }}" |
24 | 24 | when:
|
25 | 25 | - (nginx_app_protect_install_signatures | bool) or (nginx_app_protect_install_threat_campaigns | bool)
|
26 | 26 | - nginx_app_protect_manage_repo | bool
|
|
31 | 31 | state: "{{ nginx_app_protect_waf_state }}"
|
32 | 32 | update_cache: true
|
33 | 33 | ignore_errors: "{{ ansible_check_mode }}"
|
34 |
| - when: nginx_license_status is not defined |
| 34 | + when: nginx_app_protect_license_status is not defined |
35 | 35 | notify: (Handler - NGINX App Protect) Run NGINX
|
36 | 36 |
|
37 | 37 | - name: (Alpine Linux) Install NGINX App Protect WAF signatures {{ nginx_app_protect_signatures_version is defined | ternary(nginx_app_protect_signatures_version, '') }}
|
|
42 | 42 | ignore_errors: "{{ ansible_check_mode }}"
|
43 | 43 | when:
|
44 | 44 | - nginx_app_protect_install_signatures | bool
|
45 |
| - - nginx_license_status is not defined |
| 45 | + - nginx_app_protect_license_status is not defined |
46 | 46 | notify: (Handler - NGINX App Protect) Run NGINX
|
47 | 47 |
|
48 | 48 | - name: (Alpine Linux) Install NGINX App Protect WAF threat campaigns {{ nginx_app_protect_threat_campaigns_version is defined | ternary(nginx_app_protect_threat_campaigns_version, '') }}
|
|
53 | 53 | ignore_errors: "{{ ansible_check_mode }}"
|
54 | 54 | when:
|
55 | 55 | - nginx_app_protect_install_threat_campaigns | bool
|
56 |
| - - nginx_license_status is not defined |
| 56 | + - nginx_app_protect_license_status is not defined |
57 | 57 | notify: (Handler - NGINX App Protect) Run NGINX
|
0 commit comments