You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The `kubevirt_vm` module that is part of the `redhat.openshift_virtualization` collection is used to modify a VM
89
89
* The `name` parameter uses a user defined variable named `vm_name` to specify which VM to stop
90
-
* The `running: false` ensures the VM is not running
90
+
* The `run_strategy: Halted` ensures the VM is not running
91
91
* The `wait: true` ensures the next Ansible task isn't triggered until the stop is complete
92
92
+
93
93
. After making and saving the changes, ensure you commit and push them to your Gitea repository. For detailed instructions, refer to xref:appendix-vscode-commit-push.adoc[].
@@ -161,7 +161,7 @@ to identify key fields required to create dynamic Ansible tasks.
161
161
redhat.openshift_virtualization.kubevirt_vm:
162
162
name: "{{ item.metadata.name }}"
163
163
namespace: "{{ item.metadata.namespace }}"
164
-
running: false
164
+
run_strategy: Halted
165
165
wait: true
166
166
loop: "{{ vm_info.resources }}"
167
167
loop_control:
@@ -244,7 +244,7 @@ The following steps will guide you in creating the `start_vm.yml` file.
244
244
redhat.openshift_virtualization.kubevirt_vm:
245
245
name: "{{ item.metadata.name }}"
246
246
namespace: "{{ item.metadata.namespace }}"
247
-
running: true
247
+
run_strategy: Always
248
248
wait: true
249
249
loop: "{{ vm_info.resources }}"
250
250
loop_control:
@@ -303,7 +303,7 @@ The following steps will guide you in creating the `restart_vm.yml` file.
303
303
redhat.openshift_virtualization.kubevirt_vm:
304
304
name: "{{ item.metadata.name }}"
305
305
namespace: "{{ item.metadata.namespace }}"
306
-
running: false
306
+
run_strategy: Halted
307
307
wait: true
308
308
loop: "{{ vm_info.resources }}"
309
309
loop_control:
@@ -319,7 +319,7 @@ The following steps will guide you in creating the `restart_vm.yml` file.
0 commit comments