don't wait for geth sync if we are just updating the node

pull/1734/head
damon 2020-02-21 15:14:37 -07:00
parent cdbd27bd63
commit bee9ab084a
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,6 @@
remote_user: "{{default_user}}"
gather_facts: no
tasks:
- name: "create geth directory"
become: yes
file:

View File

@ -14,7 +14,7 @@
docker_container:
name: geth-sync
state: absent
when: geth_running.stat.exists == False
when: geth_running.stat.exists == False and restarting_geth is undefined
ignore_errors: yes
- name: "run geth until it finishes syncing (time to get up and go for a walk)"
@ -23,13 +23,13 @@
async: 100000
poll: 0
register: geth_sync_status
when: geth_running.stat.exists == False
when: geth_running.stat.exists == False and restarting_geth is undefined
- name: 'check if geth is finished syncing...'
become: yes
until: job_result.finished
retries: 10000
when: geth_running.stat.exists == False
when: geth_running.stat.exists == False and restarting_geth is undefined
register: job_result
async_status:
jid: "{{ geth_sync_status['ansible_job_id'] }}"

View File

@ -18,6 +18,7 @@
name: ursula
state: stopped
- set_fact: restarting_geth=True
- name: Stop Geth
become: yes
docker_container: