check whether test_host is defined before checking if it is undercloud

Change-Id: I2a80390a53ecf81aa0f9d8b7b47539480bd3592a
This commit is contained in:
Eduardo Olivares 2022-12-23 10:40:19 +01:00
parent 5182bfa855
commit cb8033ed4c

View File

@ -46,4 +46,5 @@
ignore_errors: yes
when:
- groups.get("undercloud")
- test_host is defined
- test_host not in groups.undercloud