From f15417aa316b6b94d5fc1988df8b71ea1bb5f246 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Thu, 25 Mar 2021 18:17:00 +0200 Subject: [PATCH] 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 --- tasks/drivers/kvm/nova_compute_kvm.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/tasks/drivers/kvm/nova_compute_kvm.yml b/tasks/drivers/kvm/nova_compute_kvm.yml index c03036fe..7dedf92e 100644 --- a/tasks/drivers/kvm/nova_compute_kvm.yml +++ b/tasks/drivers/kvm/nova_compute_kvm.yml @@ -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