Skip to content

Commit 74ac738

Browse files
committed
do not setup repos when removing app protect
1 parent c452c6a commit 74ac738

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tasks/install-app-protect-linux.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
---
2-
- import_tasks: setup-debian.yml
3-
when: ansible_os_family == "Debian"
2+
- name: "Remove NGINX App Protect"
3+
block:
44

5-
- import_tasks: setup-redhat.yml
6-
when: ansible_os_family == "RedHat"
5+
- import_tasks: setup-debian.yml
6+
when: ansible_os_family == "Debian"
7+
8+
- import_tasks: setup-redhat.yml
9+
when: ansible_os_family == "RedHat"
10+
11+
when: app_protect_state != "absent"
712

813
- name: "(Install: Linux) Install NGINX App Protect"
914
package:

0 commit comments

Comments
 (0)