|
@ -2,12 +2,14 @@ |
|
|
|
|
|
|
|
|
- name: gather tendermint public keys |
|
|
- name: gather tendermint public keys |
|
|
when: validators == true and tendermint_genesis_file is not defined |
|
|
when: validators == true and tendermint_genesis_file is not defined |
|
|
shell: "tendermint show_validator --home /etc/{{service}}/tendermint --log_level error" |
|
|
|
|
|
|
|
|
command: "tendermint show_validator --home /etc/{{service}}/tendermint --log_level error" |
|
|
become: yes |
|
|
become: yes |
|
|
become_user: "{{service}}" |
|
|
become_user: "{{service}}" |
|
|
register: pubkeys |
|
|
register: pubkeys |
|
|
changed_when: false |
|
|
changed_when: false |
|
|
|
|
|
|
|
|
|
|
|
- debug: var=pubkeys |
|
|
|
|
|
|
|
|
- name: register tendermint public keys as host facts |
|
|
- name: register tendermint public keys as host facts |
|
|
when: validators == true and tendermint_genesis_file is not defined |
|
|
when: validators == true and tendermint_genesis_file is not defined |
|
|
set_fact: "pubkey='{{pubkeys.stdout}}'" |
|
|
set_fact: "pubkey='{{pubkeys.stdout}}'" |
|
|