-
Notifications
You must be signed in to change notification settings - Fork 6
/
playbook.yml
37 lines (36 loc) · 1023 Bytes
/
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
---
- name: Converge boot node
hosts: "*boot*"
become: true
gather_facts: smart
vars:
bc_polkadot_comp_state_boot: present
install_promstack: true
roles:
- role: tank.blockchain
tasks:
- debug: msg="Bootstrap instance ready"
tags: [print_action]
- name: Converge validator node
hosts: "*prod*"
become: true
gather_facts: smart
vars:
bc_polkadot_comp_state_prod: present
bc_polkadot_comp_state_bench: present
install_promstack: true
bc_polkadot_extra_validator_id: "{{ play_hosts.index(inventory_hostname) | int }}"
bc_polkadot_bench_shard_id: "{{ play_hosts.index(inventory_hostname) | int }}"
bc_polkadot_bench_shards: "{{ play_hosts | length }}"
roles:
- role: tank.blockchain
tasks:
- name: "Show bc_polkadot_extra_validator_id"
tags:
- update
debug:
msg: "{{ bc_polkadot_extra_validator_id }}"
- debug: msg="Validator instance(s) ready"
tags: [print_action]
- set_fact:
bench_present: true