blob: 5494ffff36b768db583e49861353ec54406edfda [file] [log] [blame]
Martin Kopecf62dbc12019-12-12 00:20:41 +00001- when: init_saved_state
2 block:
3 - name: Run tempest cleanup init-saved-state
4 become: yes
5 become_user: tempest
6 command: tox -evenv-tempest -- tempest cleanup --init-saved-state
7 args:
8 chdir: "{{ devstack_base_dir }}/tempest"
9
10 - name: Cat saved_state.json
11 command: cat "{{ devstack_base_dir }}/tempest/saved_state.json"
12
13- when: dry_run
14 block:
15 - name: Run tempest cleanup dry-run
16 become: yes
17 become_user: tempest
18 command: tox -evenv-tempest -- tempest cleanup --dry-run
19 args:
20 chdir: "{{ devstack_base_dir }}/tempest"
21
22 - name: Cat dry_run.json
23 command: cat "{{ devstack_base_dir }}/tempest/dry_run.json"
24
25- name: Run tempest cleanup
26 become: yes
27 become_user: tempest
28 command: tox -evenv-tempest -- tempest cleanup
29 args:
30 chdir: "{{ devstack_base_dir }}/tempest"
31 when: not dry_run and not init_saved_state