|
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: /opt/app_protect/tmp/nginx-plus-module-appprotect.te |
| 97 | + dest: "{{ app_protect_tempdir }}/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 /opt/app_protect/tmp/nginx-plus-module-appprotect.mod /opt/app_protect/tmp/nginx-plus-module-appprotect.te |
| 100 | + command: "checkmodule -M -m -o {{ app_protect_tempdir }}/nginx-plus-module-appprotect.mod {{ app_protect_tempdir }}/nginx-plus-module-appprotect.te" |
101 | 101 | args:
|
102 |
| - creates: /opt/app_protect/tmp/nginx-plus-module-appprotect.mod |
| 102 | + creates: "{{ app_protect_tempdir }}/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 /opt/app_protect/tmp/nginx-plus-module-appprotect.pp -m /opt/app_protect/tmp/nginx-plus-module-appprotect.mod |
| 106 | + command: "semodule_package -o {{ app_protect_tempdir }}/nginx-plus-module-appprotect.pp -m {{ app_protect_tempdir }}/nginx-plus-module-appprotect.mod" |
107 | 107 | args:
|
108 |
| - creates: /opt/app_protect/tmp/nginx-plus-module-appprotect.pp |
| 108 | + creates: "{{ app_protect_tempdir }}/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 /opt/app_protect/tmp/nginx-plus-module-appprotect.pp |
| 112 | + command: "semodule -i {{ app_protect_tempdir }}/nginx-plus-module-appprotect.pp" |
113 | 113 | changed_when: false
|
114 | 114 |
|
115 | 115 | - name: "(Install: SELinux: Module) Create NGINX Plus Metrics Module"
|
116 | 116 | template:
|
117 | 117 | src: nginx-plus-module-f5-metrics.te.j2
|
118 |
| - dest: /opt/app_protect/tmp/nginx-plus-module-f5-metrics.te |
| 118 | + dest: "{{ app_protect_tempdir }}/nginx-plus-module-f5-metrics.te" |
119 | 119 |
|
120 | 120 | - name: "(Install: SELinux: Module) Check NGINX Plus Metrics Module"
|
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 |
| 121 | + command: "checkmodule -M -m -o {{ app_protect_tempdir }}/nginx-plus-module-f5-metrics.mod {{ app_protect_tempdir }}/nginx-plus-module-f5-metrics.te" |
122 | 122 | args:
|
123 |
| - creates: /opt/app_protect/tmp/nginx-plus-module-f5-metrics.mod |
| 123 | + creates: "{{ app_protect_tempdir }}/nginx-plus-module-f5-metrics.mod" |
124 | 124 | changed_when: false
|
125 | 125 |
|
126 | 126 | - name: "(Install: SELinux: Module) Compile NGINX Plus Metrics Module"
|
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 |
| 127 | + command: "semodule_package -o {{ app_protect_tempdir }}/nginx-plus-module-f5-metrics.pp -m {{ app_protect_tempdir }}/nginx-plus-module-f5-metrics.mod" |
128 | 128 | args:
|
129 |
| - creates: /opt/app_protect/tmp/nginx-plus-module-f5-metrics.pp |
| 129 | + creates: "{{ app_protect_tempdir }}/nginx-plus-module-f5-metrics.pp" |
130 | 130 | changed_when: false
|
131 | 131 |
|
132 | 132 | - name: "(Install: SELinux: Module) Import NGINX Plus Metrics Module"
|
133 |
| - command: semodule -i /opt/app_protect/tmp/nginx-plus-module-f5-metrics.pp |
| 133 | + command: "semodule -i {{ app_protect_tempdir }}/nginx-plus-module-f5-metrics.pp" |
134 | 134 | changed_when: false
|
135 | 135 |
|
136 | 136 | - name: "(Install: SELinux) Enforce SELinux"
|
|
0 commit comments