-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathclusterSetup.yml
54 lines (48 loc) · 1.13 KB
/
clusterSetup.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
---
- hosts: clusterNodes
gather_facts: true
become: true
pre_tasks:
- name: Including system upgrade role
ansible.builtin.import_role:
name: systemUpgrade
when: systemUpgradeRequired
- name: Including java role
ansible.builtin.import_role:
name: java
roles:
- common
- install
- copyFiles
- configure
- service
- hosts: clusterNodes
gather_facts: false
become: true
serial: 1
tasks:
- name: Starting all nodes
ansible.builtin.import_role:
name: serviceState
vars:
serviceName: zookeeper
serviceState: started
- name: zookeeper Port Status
ansible.builtin.include_role:
name: portCheck
vars:
PortNumber: "{{ item }}"
PortStatus: started
loop:
- "{{ zookeeperClientPort }}"
- name: zookeeper Secure Port Status
ansible.builtin.include_role:
name: portCheck
vars:
PortNumber: "{{ item }}"
PortStatus: started
loop:
- "{{ zookeeperSecureClientPort }}"
when:
- zookeeperSslQuorum is defined
- zookeeperSslQuorum