aboutsummaryrefslogblamecommitdiff
path: root/scripts/deploy/app/reset.yml
blob: f1c28733f93dcfbd4f138b4c62851044255f3048 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                    
                                                        











                                                                            
---
# 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:
    conf_dir: "{{ (testbed, hs_conf_dir) | path_join }}"
    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)"