aboutsummaryrefslogtreecommitdiff
path: root/scripts/deploy/app/reset.yml
diff options
context:
space:
mode:
authorDeterminant <tederminant@gmail.com>2020-08-30 00:15:08 -0400
committerDeterminant <tederminant@gmail.com>2020-08-30 00:15:08 -0400
commitd5bf357c8010bb1219d04ede14ce699b409e93c5 (patch)
tree042e6bc94994b899c9b31b7816648b557271a3f5 /scripts/deploy/app/reset.yml
parentdc28778f9c10d8128abfcf4fea7339c69bd6074d (diff)
fix the connection issue with --notls flag on; WIP: deployment example
Diffstat (limited to 'scripts/deploy/app/reset.yml')
-rw-r--r--scripts/deploy/app/reset.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/deploy/app/reset.yml b/scripts/deploy/app/reset.yml
new file mode 100644
index 0000000..1b80b27
--- /dev/null
+++ b/scripts/deploy/app/reset.yml
@@ -0,0 +1,21 @@
+---
+# available vars:
+# last_state -- the content of state.json
+# nid -- host_idx (with 0 as default)
+# ngroup -- the group of nodes involved in the build
+# testbed -- the remote path of run_id
+
+- name: reset hotstuff
+ vars:
+ log_dir: "{{ (testbed, hs_log_dir) | path_join }}"
+ block:
+ - name: remove confs
+ file:
+ path: "{{ conf_dir }}"
+ state: absent
+ when: "hs_no_reset_conf is not defined or (hs_no_reset_conf == False)"
+ - name: remove old logs
+ file:
+ path: "{{ log_dir }}"
+ state: absent
+ when: "hs_no_reset_log is not defined or (hs_no_reset_log == False)"