Skip to content

Commit 5a774bc

Browse files
add installation of packages for aminer-rest.
1 parent 82d0e41 commit 5a774bc

File tree

2 files changed

+69
-19
lines changed

2 files changed

+69
-19
lines changed

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ aminer_user: "aminer"
1414
aminer_group: "aminer"
1515
aminer_docbookxslpath: "/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl"
1616
aminer_usershell: /usr/sbin/nologin
17+
aminerrest_repopath: null

tasks/main.yml

Lines changed: 68 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -144,121 +144,170 @@
144144
state: latest
145145

146146
- name: Install zmq
147-
moreati.uv.pip:
147+
pip:
148148
name: zmq
149149
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
150150
state: latest
151151

152152
- name: Install python3-cerberus
153-
moreati.uv.pip:
153+
pip:
154154
name: cerberus
155155
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
156156
state: latest
157157

158158
- name: pip self-update
159-
moreati.uv.pip:
159+
pip:
160160
name: pip
161161
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
162162
state: latest
163163

164164
- name: Install python3-kafka
165-
moreati.uv.pip:
165+
pip:
166166
name: kafka-python
167167
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
168168
state: present
169169
version: 2.0.6
170170

171171
- name: Install python3-patsy
172-
moreati.uv.pip:
172+
pip:
173173
name: patsy
174174
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
175175
state: latest
176176

177177
- name: Install python3-statsmodels
178-
moreati.uv.pip:
178+
pip:
179179
name: statsmodels
180180
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
181181
state: latest
182182

183183
- name: Install importlib-metadata
184-
moreati.uv.pip:
184+
pip:
185185
name: importlib-metadata
186186
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
187187
state: latest
188188

189189
- name: Install tz
190-
moreati.uv.pip:
190+
pip:
191191
name: tz
192192
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
193193
state: latest
194194

195195
- name: Install scipy
196-
moreati.uv.pip:
196+
pip:
197197
name: scipy
198198
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
199199
state: latest
200200

201201
- name: Install numpy
202-
moreati.uv.pip:
202+
pip:
203203
name: numpy
204204
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
205205
state: latest
206206

207207
- name: Install setuptools
208-
moreati.uv.pip:
208+
pip:
209209
name: setuptools
210210
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
211211
state: latest
212212

213213
- name: Install python-dateutil
214-
moreati.uv.pip:
214+
pip:
215215
name: python-dateutil
216216
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
217217
state: latest
218218

219219
- name: Install six
220-
moreati.uv.pip:
220+
pip:
221221
name: six
222222
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
223223
state: latest
224224

225225
- name: Install urllib3
226-
moreati.uv.pip:
226+
pip:
227227
name: urllib3
228228
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
229229
state: latest
230230

231231
- name: Install defusedxml
232-
moreati.uv.pip:
232+
pip:
233233
name: defusedxml
234234
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
235235
state: latest
236236

237237
- name: Install PyYAML
238-
moreati.uv.pip:
238+
pip:
239239
name: PyYAML
240240
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
241241
state: latest
242242

243243
- name: Install patsy
244-
moreati.uv.pip:
244+
pip:
245245
name: patsy
246246
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
247247
state: latest
248248

249249
- name: Install pylibacl
250-
moreati.uv.pip:
250+
pip:
251251
name: pylibacl
252252
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
253253
state: latest
254254
when: ansible_distribution != "RedHat"
255255

256256
- name: Install pytz
257-
moreati.uv.pip:
257+
pip:
258258
name: pytz
259259
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
260260
state: latest
261261

262+
- name: Install fastapi
263+
pip:
264+
name: fastapi
265+
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
266+
state: latest
267+
when: aminerrest_repopath is defined and aminerrest_repopath | length > 0
268+
269+
- name: Install python-jose
270+
pip:
271+
name: python-jose
272+
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
273+
state: latest
274+
when: aminerrest_repopath is defined and aminerrest_repopath | length > 0
275+
276+
- name: Install passlib
277+
pip:
278+
name: passlib
279+
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
280+
state: latest
281+
when: aminerrest_repopath is defined and aminerrest_repopath | length > 0
282+
283+
- name: Install pydantic
284+
pip:
285+
name: pydantic
286+
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
287+
state: latest
288+
when: aminerrest_repopath is defined and aminerrest_repopath | length > 0
289+
290+
- name: Install httpx
291+
pip:
292+
name: httpx
293+
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
294+
state: latest
295+
when: aminerrest_repopath is defined and aminerrest_repopath | length > 0
296+
297+
- name: Install uvicorn
298+
pip:
299+
name: uvicorn
300+
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
301+
state: latest
302+
when: aminerrest_repopath is defined and aminerrest_repopath | length > 0
303+
304+
- name: Install python-multipart
305+
pip:
306+
name: python-multipart
307+
virtualenv: /usr/lib/logdata-anomaly-miner/.venv
308+
state: latest
309+
when: aminerrest_repopath is defined and aminerrest_repopath | length > 0
310+
262311
- name: Set venv activate permissions
263312
file:
264313
path: "/usr/lib/logdata-anomaly-miner/.venv/bin/activate"

0 commit comments

Comments
 (0)