cloudworkers: clean disk space more thoroughly, stop containers first

pull/2618/head
damon 2021-03-27 12:11:57 -07:00
parent 2d05bb5b7d
commit 090c3e592c
4 changed files with 5 additions and 6 deletions

View File

@ -1,6 +1,8 @@
venv
.env/*
env/*
docs/*
newsfragments/*
.coverage/*
.git/*
.history

View File

@ -6,11 +6,7 @@
- name: Keep disk space clean by pruning unneeded docker debris
become: yes
docker_prune:
containers: yes
images: yes
networks: yes
builder_cache: yes
shell: docker system prune -af
- name: "pull {{ nucypher_image | default('nucypher/nucypher:latest') }}"
become: yes
@ -19,7 +15,6 @@
source: pull
force_source: yes
- import_playbook: stop_containers.yml
- import_playbook: run_geth.yml
when: node_is_decentralized is not undefined and node_is_decentralized
- import_playbook: run_ursula.yml

View File

@ -2,6 +2,7 @@
hosts: "{{ play_hosts }}"
remote_user: "{{default_user}}"
- import_playbook: include/stop_containers.yml
- import_playbook: include/update_existing_ursula.yml
- import_playbook: include/check_running_ursula.yml
- import_playbook: include/backup_ursula_data.yml

View File

@ -0,0 +1 @@
cloudworkers more throughoughly cleans up diskspace before updates.