Skip to content

Commit

Permalink
fix: only create-validator from the actual node
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Aug 23, 2020
1 parent ffd474a commit 6c76bcc
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
- name: "Check {{ STAKER }}-* exists"
become: yes
become_user: "{{ service }}"
delegate_to: "{{ STAKER_NODE }}"
shell: "ag-cosmos-helper keys show --keyring-backend=test -a {{ STAKER }}-{{ inventory_hostname }}"
ignore_errors: true
register: staker_exists

- name: "Create {{ STAKER }}-*"
become_user: "{{ service }}"
become: true
delegate_to: "{{ STAKER_NODE }}"
shell: "ag-cosmos-helper keys add --keyring-backend=test {{ staker }}"
vars:
staker: "{{ STAKER }}-{{ inventory_hostname }}"
Expand All @@ -18,7 +16,6 @@
- name: "Check {{ STAKER }}-* exists"
become: yes
become_user: "{{ service }}"
delegate_to: "{{ STAKER_NODE }}"
shell: "ag-cosmos-helper keys show --keyring-backend=test -a {{ STAKER }}-{{ inventory_hostname }}"
register: staker_address

Expand All @@ -35,7 +32,6 @@
- name: "Create validators for {{ STAKER }}-*"
become_user: "{{ service }}"
become: true
delegate_to: "{{ STAKER_NODE }}"
shell: "\
ag-cosmos-helper tx staking create-validator --keyring-backend=test \
--chain-id={{ CHAIN_NAME }} --amount={{ STAKER_AMOUNT }} \
Expand Down

0 comments on commit 6c76bcc

Please sign in to comment.