-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.yml
66 lines (61 loc) · 1.77 KB
/
playbook.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
- name: Prepering the SO
hosts: all_servers
gather_facts: false
tasks:
- setup:
when: what_exec != 'all'
and what_exec != 'prepare_os'
register: setup_executed
roles:
- { role: prepare_os, when: ( what_exec == 'prepare_os'
or what_exec == 'all' ) }
- name: Installing and Configuring ZooKeeper Servers
hosts: zookeeper
gather_facts: false
tasks:
- setup:
when: what_exec != 'all_servers'
and what_exec != 'all' and setup_executed|skipped
roles:
- { role: zookeeper, when: ( what_exec == 'zookeeper'
or what_exec == 'all' ) }
- name: Installing and Configuring Kafka Servers
hosts: kafka
gather_facts: false
tasks:
- setup:
when: what_exec != 'all_servers'
and what_exec != 'all' and setup_executed|skipped
roles:
- { role: kafka, when: ( what_exec == 'kafka'
or what_exec == 'all' ) }
- name: Installing and Configuring Schema Registry
hosts: schema-registry
gather_facts: false
tasks:
- setup:
when: what_exec != 'all_servers'
and what_exec != 'all' and setup_executed|skipped
roles:
- { role: schema-registry, when: ( what_exec == 'schema-registry'
or what_exec == 'all' ) }
- name: Installing and Configuring Kafka Rest
hosts: kafka-rest
gather_facts: false
tasks:
- setup:
when: what_exec != 'all_servers'
and what_exec != 'all' and setup_executed|skipped
roles:
- { role: kafka-rest, when: ( what_exec == 'kafka-rest'
or what_exec == 'all' ) }
- name: Installing and Configuring Kafka Manager
hosts: kafka-manager
gather_facts: false
tasks:
- setup:
when: what_exec != 'all_servers'
and what_exec != 'all' and setup_executed|skipped
roles:
- { role: kafka-manager, when: ( what_exec == 'kafka-manager'
or what_exec == 'all' ) }