Fix validation of locally built IPA when ironic is disabled

In an environment where ironic is disabled, but IPA images are built
locally for the seed, the following task will fail in a number of
commands, e.g. kayobe overcloud service deploy:

Validate the presence of locally built Ironic Python Agent (IPA) images

We need to only execute this task when ironic is enabled.

Change-Id: I61067164a003bcdf6079cdaca36f0e1755186f60
Story: 2006669
Task: 36935
This commit is contained in:
Mark Goddard 2019-10-07 13:50:35 +01:00
parent 886fe4fd76
commit b05fc00dcf

View File

@ -76,7 +76,9 @@
dest: "{{ ipa_images_kernel_name }}"
- src: "{{ ipa_images[1] }}"
dest: "{{ ipa_images_ramdisk_name }}"
when: ipa_build_images | bool
when:
- kolla_enable_ironic | bool
- ipa_build_images | bool
tags:
- config