Skip to content

Commit 4abea5d

Browse files
committed
moved handler
1 parent 16cb66d commit 4abea5d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

tasks/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@
7272

7373
when: app_protect_state != "absent"
7474

75+
- name: "(Install: CentOS) Setup SELinux"
76+
debug:
77+
msg: "Enabling selinux..."
78+
notify: "(Handler: All OSs) Enable SELinux"
79+
when:
80+
- app_protect_selinux
81+
- ansible_os_family == "RedHat"
82+
changed_when: false
83+
7584
- name: "Remove NGINX App Protect"
7685
block:
7786

tasks/prerequisites/setup-centos.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,3 @@
33
package:
44
name: ca-certificates, epel-release
55
state: present
6-
7-
- name: "(Install: CentOS) Setup SELinux"
8-
debug:
9-
msg: "Enabling selinux..."
10-
notify: "(Handler: All OSs) Enable SELinux"
11-
when: app_protect_selinux
12-
changed_when: false

0 commit comments

Comments
 (0)