mirror of
https://github.com/status-im/infra-role-beacon-node-linux.git
synced 2026-08-31 01:51:11 +00:00
21 lines
955 B
YAML
21 lines
955 B
YAML
---
|
|
- name: 'Distribute validators and secrets'
|
|
include_role: name=infra-role-dist-validators
|
|
vars:
|
|
dist_validators_name: '{{ beacon_node_dist_validators_name }}'
|
|
dist_validators_user: '{{ beacon_node_user }}'
|
|
dist_validators_start: '{{ beacon_node_dist_validators_start | mandatory }}'
|
|
dist_validators_end: '{{ beacon_node_dist_validators_end | mandatory }}'
|
|
dist_validators_sec_path: '{{ beacon_node_dist_validators_sec_path | mandatory }}'
|
|
dist_validators_val_path: '{{ beacon_node_dist_validators_val_path | mandatory }}'
|
|
|
|
- when: dist_validators_deployed is defined
|
|
block:
|
|
- name: 'Show number of validators deployed'
|
|
debug: msg='Deployed {{ dist_validators_deployed }} validators'
|
|
|
|
- name: 'Restart beacon node service'
|
|
systemd_service:
|
|
name: '{{ beacon_node_service_name }}.service'
|
|
state: '{{ beacon_node_service_allow_restart | ternary("restarted", "started") }}'
|