mirror of https://github.com/nucypher/nucypher.git
don't wait for geth sync if we are just updating the node
parent
cdbd27bd63
commit
bee9ab084a
|
@ -3,7 +3,6 @@
|
||||||
remote_user: "{{default_user}}"
|
remote_user: "{{default_user}}"
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: "create geth directory"
|
- name: "create geth directory"
|
||||||
become: yes
|
become: yes
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
docker_container:
|
docker_container:
|
||||||
name: geth-sync
|
name: geth-sync
|
||||||
state: absent
|
state: absent
|
||||||
when: geth_running.stat.exists == False
|
when: geth_running.stat.exists == False and restarting_geth is undefined
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: "run geth until it finishes syncing (time to get up and go for a walk)"
|
- name: "run geth until it finishes syncing (time to get up and go for a walk)"
|
||||||
|
@ -23,13 +23,13 @@
|
||||||
async: 100000
|
async: 100000
|
||||||
poll: 0
|
poll: 0
|
||||||
register: geth_sync_status
|
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...'
|
- name: 'check if geth is finished syncing...'
|
||||||
become: yes
|
become: yes
|
||||||
until: job_result.finished
|
until: job_result.finished
|
||||||
retries: 10000
|
retries: 10000
|
||||||
when: geth_running.stat.exists == False
|
when: geth_running.stat.exists == False and restarting_geth is undefined
|
||||||
register: job_result
|
register: job_result
|
||||||
async_status:
|
async_status:
|
||||||
jid: "{{ geth_sync_status['ansible_job_id'] }}"
|
jid: "{{ geth_sync_status['ansible_job_id'] }}"
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
name: ursula
|
name: ursula
|
||||||
state: stopped
|
state: stopped
|
||||||
|
|
||||||
|
- set_fact: restarting_geth=True
|
||||||
- name: Stop Geth
|
- name: Stop Geth
|
||||||
become: yes
|
become: yes
|
||||||
docker_container:
|
docker_container:
|
||||||
|
|
Loading…
Reference in New Issue