Run flavor prep tasks only when nova is enabled

These tasks are not needed when nova is not setup on
undercloud.

Related-Bug: #1891242
Closes-Bug: #1894941
Change-Id: Ie8b95ade76b1d13c1049a019fe83c04128a1e58d
This commit is contained in:
yatinkarel 2020-09-09 10:52:19 +05:30
parent ea820055ac
commit 339c2fe46f
2 changed files with 2 additions and 0 deletions

View File

@ -6,3 +6,4 @@
src: "{{ overcloud_prep_flavors_script }}"
dest: "{{ working_dir }}/overcloud-prep-flavors.sh"
mode: 0755
when: undercloud_enable_nova|bool

View File

@ -5,3 +5,4 @@
{{ working_dir }}/overcloud-prep-flavors.sh 2>&1 {{ timestamper_cmd }} >
{{ overcloud_prep_flavors_log }}
changed_when: true
when: undercloud_enable_nova|bool