|
34 | 34 |
|
35 | 35 | - name: Set up signing keys |
36 | 36 | include_tasks: "{{ role_path }}/tasks/common/keys/setup-keys.yml" |
37 | | - when: nginx_app_protect_waf_state != "absent" |
38 | | - or nginx_app_protect_install_signatures | bool |
| 37 | + when: nginx_app_protect_install_signatures | bool |
39 | 38 | or nginx_app_protect_install_threat_campaigns | bool |
40 | 39 | tags: nginx_app_protect_key |
41 | 40 |
|
42 | 41 | - name: Set up license |
43 | 42 | include_tasks: "{{ role_path }}/tasks/common/install/setup-license.yml" |
44 | 43 | when: |
45 | | - - nginx_app_protect_waf_state != "absent" |
46 | | - or nginx_app_protect_install_signatures | bool |
| 44 | + - nginx_app_protect_install_signatures | bool |
47 | 45 | or nginx_app_protect_install_threat_campaigns | bool |
48 | 46 | - nginx_app_protect_setup_license | bool |
49 | 47 | tags: nginx_app_protect_setup_license |
|
68 | 66 | when: nginx_app_protect_configure | bool |
69 | 67 | tags: nginx_app_protect_configure |
70 | 68 | when: nginx_app_protect_waf_state != "absent" |
| 69 | + or nginx_app_protect_dos_state != "absent" |
71 | 70 |
|
72 | 71 | - name: Ensure NGINX App Protect is running |
73 | 72 | meta: flush_handlers |
74 | 73 |
|
75 | 74 | - name: Remove NGINX App Protect |
76 | 75 | block: |
77 | | - - name: Remove NGINX App Protect package |
78 | | - include_tasks: "{{ role_path }}/tasks/waf/install/install-app-protect-waf.yml" |
79 | | - tags: nginx_app_protect_remove |
| 76 | + - name: Remove NGINX App Protect WAF package |
| 77 | + include_tasks: "{{ role_path }}/tasks/waf/install-app-protect-waf.yml" |
| 78 | + when: nginx_app_protect_waf_state == "absent" |
| 79 | + tags: nginx_app_protect_waf_remove |
80 | 80 |
|
81 | | - - name: Disable NGINX App Protect config |
82 | | - include_tasks: "{{ role_path }}/tasks/waf/config/configure-app-protect-waf.yml" |
83 | | - when: nginx_app_protect_configure | bool |
84 | | - tags: nginx_app_protect_remove_config |
| 81 | + - name: Remove NGINX App Protect DoS package |
| 82 | + include_tasks: "{{ role_path }}/tasks/dos/install-app-protect-waf.yml" |
| 83 | + when: nginx_app_protect_dos_state == "absent" |
| 84 | + tags: nginx_app_protect_dos_remove |
85 | 85 | when: nginx_app_protect_waf_state == "absent" |
| 86 | + or nginx_app_protect_dos_state == "absent" |
0 commit comments