diff options
author | Martin Kopec <mkopec@redhat.com> | 2019-12-12 00:20:41 +0000 |
---|---|---|
committer | Martin Kopec <mkopec@redhat.com> | 2020-05-05 12:07:51 +0000 |
commit | f62dbc1c22a56bdff44e97247bef163192eab25e (patch) | |
tree | 24e94a59825f95ae18d6fb77092608d4e9c4861a /playbooks | |
parent | e8f1876aa6772077f85f380677b30251c2454505 (diff) | |
download | tempest-f62dbc1c22a56bdff44e97247bef163192eab25e.tar.gz |
Add tempest-cleanup ansible role
The patch adds a new ansible role called tempest-cleanup which will
allow us to test tempest cleanup in the gate jobs.
Change-Id: I2cef2da6fee13e622da07b890da88850fe420152
Diffstat (limited to 'playbooks')
-rw-r--r-- | playbooks/devstack-tempest.yaml | 43 |
1 files changed, 38 insertions, 5 deletions
diff --git a/playbooks/devstack-tempest.yaml b/playbooks/devstack-tempest.yaml index 5f87abd31..7ee74110d 100644 --- a/playbooks/devstack-tempest.yaml +++ b/playbooks/devstack-tempest.yaml @@ -12,8 +12,41 @@ # job provided by the gabbi-tempest plugin. It can be safely ignored # if that plugin is not being used. GABBI_TEMPEST_PATH: "{{ gabbi_tempest_path | default('') }}" - roles: - - setup-tempest-run-dir - - setup-tempest-data-dir - - acl-devstack-files - - run-tempest + tasks: + - name: Setup Tempest Run Directory + include_role: + name: setup-tempest-run-dir + + - name: Setup Tempest Data Directory + include_role: + name: setup-tempest-data-dir + + - name: ACL devstack files + include_role: + name: acl-devstack-files + + - name: Run tempest cleanup init-saved-state + include_role: + name: tempest-cleanup + vars: + init_saved_state: true + when: + - run_tempest_dry_cleanup is defined + - run_tempest_cleanup is defined + + - name: Run Tempest + include_role: + name: run-tempest + + - name: Run tempest cleanup dry-run + include_role: + name: tempest-cleanup + vars: + dry_run: true + when: + - run_tempest_dry_cleanup is defined + + - name: Run tempest cleanup + include_role: + name: tempest-cleanup + when: run_tempest_cleanup is defined |