diff --git a/host-evacuate.yaml b/host-evacuate.yaml index 500b0e6..da22dab 100644 --- a/host-evacuate.yaml +++ b/host-evacuate.yaml @@ -7,6 +7,7 @@ host-evacuate: input: - search_opts + - on_shared_storage tasks: list_vms: @@ -24,4 +25,4 @@ host-evacuate: evacuate_vms: with-items: vm in <% $.filtered_vms %> - action: custom.evacuate uuid=<% $.vm.uuid %> evacuate=<% $.vm.evacuate %> on_shared_storage=false + action: custom.evacuate uuid=<% $.vm.uuid %> evacuate=<% $.vm.evacuate %> on_shared_storage=<% $.on_shared_storage %> diff --git a/input.json b/input.json new file mode 100644 index 0000000..548c8fe --- /dev/null +++ b/input.json @@ -0,0 +1,4 @@ +{ + "search_opts": {"host": "compute1"}, + "on_shared_storage": false +}