Skip to content

Commit

Permalink
CI: Fix ansible-test errors: Change include to include_tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
mnecas committed Dec 11, 2023
1 parent b23df55 commit 7c87a8f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion roles/disaster_recovery/tasks/recover/register_vms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# TODO: We should filter out VMs which already exist in the setup (diskless VMs)
- name: Register VMs
include: register_vm.yml
include_tasks: register_vm.yml
with_items: "{{ storage_vm_info.ovirt_storage_vms }}"
# We use loop_control so storage.name will not be overridden by the nested loop.
loop_control:
Expand Down
16 changes: 8 additions & 8 deletions roles/infra/roles/datacenter_cleanup/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
---
- name: Remove VMPools
include: vm_pools.yml
include_tasks: vm_pools.yml

- name: Remove VMs
include: vms.yml
include_tasks: vms.yml

- name: Remove Templates
include: templates.yml
include_tasks: templates.yml

- name: Remove Disks
include: disks.yml
include_tasks: disks.yml

- name: Find existing Storage Domains in Datacenter
ovirt_storage_domain_info:
Expand All @@ -18,7 +18,7 @@
register: sd_info

- name: Remove all Storage Domains except master
include: storages_pre.yml
include_tasks: storages_pre.yml

- name: Find existing clusters in Datacenter
ovirt_cluster_info:
Expand All @@ -27,13 +27,13 @@
register: cluster_info

- name: Remove Datacenter
include: datacenter.yml
include_tasks: datacenter.yml

- name: Remove master Storage Domain
include: storages_last.yml
include_tasks: storages_last.yml

- name: Remove Clusters and Hosts
include: cluster_and_hosts.yml
include_tasks: cluster_and_hosts.yml
with_items: "{{ cluster_info.ovirt_clusters }}"
loop_control:
loop_var: cluster_item

0 comments on commit 7c87a8f

Please sign in to comment.