|
94 | 94 | - name: "(Install: SELinux: Module) Create NGINX Plus App Protect Module"
|
95 | 95 | template:
|
96 | 96 | src: nginx-plus-module-appprotect.te.j2
|
97 |
| - dest: /tmp/nginx-plus-module-appprotect.te |
| 97 | + dest: /opt/app_protect/tmp/nginx-plus-module-appprotect.te |
98 | 98 |
|
99 | 99 | - name: "(Install: SELinux: Module) Check NGINX Plus App Protect Module"
|
100 |
| - command: checkmodule -M -m -o /tmp/nginx-plus-module-appprotect.mod /tmp/nginx-plus-module-appprotect.te |
| 100 | + command: checkmodule -M -m -o /opt/app_protect/tmp/nginx-plus-module-appprotect.mod /opt/app_protect/tmp/nginx-plus-module-appprotect.te |
101 | 101 | args:
|
102 |
| - creates: /tmp/nginx-plus-module-appprotect.mod |
| 102 | + creates: /opt/app_protect/tmp/nginx-plus-module-appprotect.mod |
103 | 103 | changed_when: false
|
104 | 104 |
|
105 | 105 | - name: "(Install: SELinux: Module) Compile NGINX Plus App Protect Module"
|
106 |
| - command: semodule_package -o /tmp/nginx-plus-module-appprotect.pp -m /tmp/nginx-plus-module-appprotect.mod |
| 106 | + command: semodule_package -o /opt/app_protect/tmp/nginx-plus-module-appprotect.pp -m /opt/app_protect/tmp/nginx-plus-module-appprotect.mod |
107 | 107 | args:
|
108 |
| - creates: /tmp/nginx-plus-module-appprotect.pp |
| 108 | + creates: /opt/app_protect/tmp/nginx-plus-module-appprotect.pp |
109 | 109 | changed_when: false
|
110 | 110 |
|
111 | 111 | - name: "(Install: SELinux: Module) Import NGINX Plus App Protect Module"
|
112 |
| - command: semodule -i /tmp/nginx-plus-module-appprotect.pp |
| 112 | + command: semodule -i /opt/app_protect/tmp/nginx-plus-module-appprotect.pp |
113 | 113 | changed_when: false
|
114 | 114 |
|
115 |
| -- name: "(Install: SELinux: Module) Cleanup NGINX Plus App Protect Module" |
116 |
| - file: |
117 |
| - path: "/tmp/{{ item }}" |
118 |
| - state: absent |
119 |
| - with_items: |
120 |
| - - nginx-plus-module-appprotect.te |
121 |
| - - nginx-plus-module-appprotect.mod |
122 |
| - - nginx-plus-module-appprotect.pp |
123 |
| - |
124 | 115 | - name: "(Install: SELinux: Module) Create NGINX Plus Metrics Module"
|
125 | 116 | template:
|
126 | 117 | src: nginx-plus-module-f5-metrics.te.j2
|
127 |
| - dest: /tmp/nginx-plus-module-f5-metrics.te |
| 118 | + dest: /opt/app_protect/tmp/nginx-plus-module-f5-metrics.te |
128 | 119 |
|
129 | 120 | - name: "(Install: SELinux: Module) Check NGINX Plus Metrics Module"
|
130 |
| - command: checkmodule -M -m -o /tmp/nginx-plus-module-f5-metrics.mod /tmp/nginx-plus-module-f5-metrics.te |
| 121 | + command: checkmodule -M -m -o /opt/app_protect/tmp/nginx-plus-module-f5-metrics.mod /opt/app_protect/tmp/nginx-plus-module-f5-metrics.te |
131 | 122 | args:
|
132 |
| - creates: /tmp/nginx-plus-module-f5-metrics.mod |
| 123 | + creates: /opt/app_protect/tmp/nginx-plus-module-f5-metrics.mod |
133 | 124 | changed_when: false
|
134 | 125 |
|
135 | 126 | - name: "(Install: SELinux: Module) Compile NGINX Plus Metrics Module"
|
136 |
| - command: semodule_package -o /tmp/nginx-plus-module-f5-metrics.pp -m /tmp/nginx-plus-module-f5-metrics.mod |
| 127 | + command: semodule_package -o /opt/app_protect/tmp/nginx-plus-module-f5-metrics.pp -m /opt/app_protect/tmp/nginx-plus-module-f5-metrics.mod |
137 | 128 | args:
|
138 |
| - creates: /tmp/nginx-plus-module-f5-metrics.pp |
| 129 | + creates: /opt/app_protect/tmp/nginx-plus-module-f5-metrics.pp |
139 | 130 | changed_when: false
|
140 | 131 |
|
141 | 132 | - name: "(Install: SELinux: Module) Import NGINX Plus Metrics Module"
|
142 |
| - command: semodule -i /tmp/nginx-plus-module-f5-metrics.pp |
| 133 | + command: semodule -i /opt/app_protect/tmp/nginx-plus-module-f5-metrics.pp |
143 | 134 | changed_when: false
|
144 | 135 |
|
145 |
| -- name: "(Install: SELinux: Module) Cleanup NGINX Plus Metrics Module" |
146 |
| - file: |
147 |
| - path: "/tmp/{{ item }}" |
148 |
| - state: absent |
149 |
| - with_items: |
150 |
| - - nginx-plus-module-f5-metrics.te |
151 |
| - - nginx-plus-module-f5-metrics.mod |
152 |
| - - nginx-plus-module-f5-metrics.pp |
153 |
| - |
154 | 136 | - name: "(Install: SELinux) Enforce SELinux"
|
155 | 137 | selinux:
|
156 | 138 | state: enforcing
|
|
0 commit comments