blob: 5444afcc5f1d411187ce01f396c8d96533aaff9f [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
Martin Kopeca8578802020-04-07 08:19:14 +00006 command: tox -evenv-tempest -- tempest cleanup --init-saved-state --debug
Martin Kopecf62dbc12019-12-12 00:20:41 +00007 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
Martin Kopeca8578802020-04-07 08:19:14 +000018 command: tox -evenv-tempest -- tempest cleanup --dry-run --debug
Martin Kopecf62dbc12019-12-12 00:20:41 +000019 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
Martin Kopeca8578802020-04-07 08:19:14 +000028 command: tox -evenv-tempest -- tempest cleanup --debug
Martin Kopecf62dbc12019-12-12 00:20:41 +000029 args:
30 chdir: "{{ devstack_base_dir }}/tempest"
31 when: not dry_run and not init_saved_state