-
Notifications
You must be signed in to change notification settings - Fork 25
/
clusterJmxMonitoringSetup.yml
41 lines (35 loc) · 1013 Bytes
/
clusterJmxMonitoringSetup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
- hosts: clusterNodes:clusterAddNodes:kafka-mirror-maker
gather_facts: true
become: true
tasks:
- name: install common utils
ansible.builtin.include_role:
name: common
tasks_from: commonUtils.yml
- name: copy python requirements.txt
ansible.builtin.copy:
src: "roles/jmxMonitor/files/requirements.txt"
dest: "/tmp/requirements.txt"
- name: installing requirements.txt with pip3
ansible.builtin.pip:
requirements: "/tmp/requirements.txt"
executable: pip3
- hosts: clusterNodes:clusterAddNodes
gather_facts: true
roles:
- jmxMonitor
- hosts: kafka-mirror-maker
gather_facts: true
tasks:
- ansible.builtin.include_role:
name: jmxMonitor
tasks_from: kafka-mirror-maker.yml
- hosts: clusterNodes:clusterAddNodes:kafka-mirror-maker
gather_facts: true
become: true
tasks:
- name: clean temp files
ansible.builtin.file:
path: "/tmp/requirements.txt"
state: absent