File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 95
95
template :
96
96
src : nginx-plus-module-appprotect.te.j2
97
97
dest : " {{ app_protect_tempdir }}/nginx-plus-module-appprotect.te"
98
+ register : app_protect_module
98
99
99
100
- name : " (Install: SELinux: Module) Check NGINX Plus App Protect Module"
100
101
command : " checkmodule -M -m -o {{ app_protect_tempdir }}/nginx-plus-module-appprotect.mod {{ app_protect_tempdir }}/nginx-plus-module-appprotect.te"
111
112
- name : " (Install: SELinux: Module) Import NGINX Plus App Protect Module"
112
113
command : " semodule -i {{ app_protect_tempdir }}/nginx-plus-module-appprotect.pp"
113
114
changed_when : false
115
+ when : app_protect_module.changed
114
116
115
117
- name : " (Install: SELinux: Module) Create NGINX Plus Metrics Module"
116
118
template :
117
119
src : nginx-plus-module-f5-metrics.te.j2
118
120
dest : " {{ app_protect_tempdir }}/nginx-plus-module-f5-metrics.te"
121
+ register : f5_metrics_module
119
122
120
123
- name : " (Install: SELinux: Module) Check NGINX Plus Metrics Module"
121
124
command : " checkmodule -M -m -o {{ app_protect_tempdir }}/nginx-plus-module-f5-metrics.mod {{ app_protect_tempdir }}/nginx-plus-module-f5-metrics.te"
132
135
- name : " (Install: SELinux: Module) Import NGINX Plus Metrics Module"
133
136
command : " semodule -i {{ app_protect_tempdir }}/nginx-plus-module-f5-metrics.pp"
134
137
changed_when : false
138
+ when : f5_metrics_module.changed
135
139
136
140
- name : " (Install: SELinux) Enforce SELinux"
137
141
selinux :
You can’t perform that action at this time.
0 commit comments