Do not use imports inside included task

It appears that usage of static imports is not allowed inside dynamicaly
included task. This results in ansible error which hasn't been catched
by CI for some reason.

Currently setup ends up with the following error for LXC deployments [1]

[1] http://paste.openstack.org/show/803922/

Change-Id: Id5081f204e168056c6588d21c71f5cf28afb214d
This commit is contained in:
Dmitriy Rabotyagov 2021-03-25 18:17:00 +02:00
parent d354e1d1b7
commit f15417aa31
1 changed files with 15 additions and 7 deletions

View File

@ -13,9 +13,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- import_tasks: nova_compute_kvm_install.yml
- include_tasks: nova_compute_kvm_install.yml
args:
apply:
tags:
- nova-install
tags:
- nova-install
- always
- name: Check libvirtd version
command: "libvirtd --version"
@ -204,9 +208,13 @@
tags:
- always
- import_tasks: nova_compute_kvm_virsh_net_remove.yml
- include_tasks: nova_compute_kvm_virsh_net_remove.yml
args:
apply:
tags:
- nova-config
- nova-kvm
- nova-libvirt
- nova-kvm-virsh-net
tags:
- nova-config
- nova-kvm
- nova-libvirt
- nova-kvm-virsh-net
- always