File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 3
3
- name : " (Handler: All OSs) Run NGINX"
4
4
block :
5
5
6
- - name : " (Handler: All OSs) Set App Protect Permissions"
7
- file :
8
- path : /opt/app_protect
9
- owner : nginx
10
- group : nginx
11
- recurse : yes
12
-
13
6
- name : " (Handler: All OSs) Start NGINX"
14
7
service :
15
8
name : nginx
30
23
- name : " (Handler: All OSs) Check NGINX"
31
24
command : " nginx -t"
32
25
changed_when : false
26
+
27
+ - name : " (Handler: All OSs) Enable SELinux"
28
+ include_tasks : configure-selinux.yml
29
+ notify : " (Handler: All OSs) Restart NGINX"
Original file line number Diff line number Diff line change 109
109
creates : " {{ app_protect_tempdir }}/nginx-plus-module-appprotect.pp"
110
110
changed_when : false
111
111
112
- - name : " (Install: SELinux: Module) Import NGINX Plus App Protect Module"
112
+ - name : " (Install: SELinux: Module) Import NGINX Plus App Protect Module" # noqa 503
113
113
command : " semodule -i {{ app_protect_tempdir }}/nginx-plus-module-appprotect.pp"
114
114
changed_when : false
115
115
when : app_protect_module.changed
118
118
selinux :
119
119
state : enforcing
120
120
policy : targeted
121
- changed_when : false
121
+ changed_when : false
Original file line number Diff line number Diff line change 5
5
state : present
6
6
7
7
- name : " (Install: CentOS) Setup SELinux"
8
- import_tasks : setup-selinux.yml
8
+ command : /bin/true
9
+ notify : " (Handler: All OSs) Enable SELinux"
9
10
when : app_protect_selinux
You can’t perform that action at this time.
0 commit comments