post_install: add missing onditional to workspace task

The "Move over workspace when config is updated" task was running if
copy_tempest_config changed, but copy_tempest_config is created in
"Copy tempest config" only if "not tempest_use_tempestconf" conditional
is met. To avoid an error like "'copy_tempest_config' is undefined", we
need to add the same conditional to the first mentioned task.

Change-Id: I0d603dfa7319d09201f5f1d64d10cc71c56c2c21
This commit is contained in:
Emilien Macchi 2020-03-02 21:27:44 -05:00
parent 719a34a4fe
commit 2348898bc2
1 changed files with 3 additions and 1 deletions

View File

@ -79,7 +79,9 @@
failed_when:
- tempest_move_workspace.rc != 0
- tempest_move_workspace.rc != 3
when: copy_tempest_config.changed
when:
- not tempest_use_tempestconf | bool
- copy_tempest_config is changed
tags:
# don't trigger ANSIBLE0016
- skip_ansible_lint