Remove key file in playbook

This commit is contained in:
Shreerang Kale 2025-06-12 15:25:07 +05:30
parent eb4ec58893
commit c3f15b6da0
3 changed files with 7 additions and 13 deletions

View File

@ -251,12 +251,6 @@
- Note the pubkey logged at start for comparing later with validator pubkey on chain
- Remove the `priv_validator_key.json` file from TMKMS machine as it is no longer required:
```bash
rm -rf <path-to-priv_validator_key.json>
```
### Start node
- Run the following steps in the machine where the mainnet node is setup (machine 2)
@ -264,7 +258,7 @@
- Remove the validator key from node deployment as it is no longer required:
```bash
rm $DATA_DIRECTORY/$MAINNET_DEPLOYMENT_DIR/data/laconicd-data/config/priv_validator_key.json
rm -rf $DATA_DIRECTORY/$MAINNET_DEPLOYMENT_DIR/data/laconicd-data/config/priv_validator_key.json
```
NOTE: Store it safely offline in case of an emergency

View File

@ -178,12 +178,6 @@
- Note the pubkey logged at start for comparing later with validator pubkey on chain
- Remove the `priv_validator_key.json` file from TMKMS machine as it is no longer required:
```bash
rm -rf <path-to-priv_validator_key.json>
```
### Start Node
- Run the following steps in the machine where the validator node is setup (machine 2)

View File

@ -45,3 +45,9 @@
- name: Start tmkms deployment
shell: |
laconic-so deployment --dir {{data_directory}}/{{ tmkms_deployment_dir }} start
- name: Remove input private validator key file
file:
path: "{{ priv_validator_key_file_path }}"
state: absent
when: priv_key_file.stat.exists