-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework kubevirt role a bit. Add support for nested KVM virtualization
- Loading branch information
Wolfgang Kulhanek
authored and
Wolfgang Kulhanek
committed
Nov 21, 2024
1 parent
8af53b1
commit 6abbc79
Showing
6 changed files
with
28 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 7 additions & 16 deletions
23
ansible/roles_ocp_workloads/ocp4_workload_kubevirt/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
--- | ||
- name: Running Pre Workload Tasks | ||
when: ACTION == "create" or ACTION == "provision" | ||
# Do not modify this file | ||
- name: Running Workload tasks | ||
when: ACTION == "provision" | ||
ansible.builtin.include_tasks: | ||
file: ./pre_workload.yml | ||
file: workload.yml | ||
|
||
- name: Running Workload Tasks | ||
when: ACTION == "create" or ACTION == "provision" | ||
- name: Running Workload removal tasks | ||
when: ACTION == "destroy" | ||
ansible.builtin.include_tasks: | ||
file: ./workload.yml | ||
|
||
- name: Running Post Workload Tasks | ||
when: ACTION == "create" or ACTION == "provision" | ||
ansible.builtin.include_tasks: | ||
file: ./post_workload.yml | ||
|
||
- name: Running Workload removal Tasks | ||
when: ACTION == "destroy" or ACTION == "remove" | ||
ansible.builtin.include_tasks: | ||
file: ./remove_workload.yml | ||
file: remove_workload.yml |
5 changes: 0 additions & 5 deletions
5
ansible/roles_ocp_workloads/ocp4_workload_kubevirt/tasks/post_workload.yml
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
ansible/roles_ocp_workloads/ocp4_workload_kubevirt/tasks/pre_workload.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
ansible/roles_ocp_workloads/ocp4_workload_kubevirt/vars/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
# Internal Variables | ||
_ocp4_workload_kubevirt_default_storage_class: "" | ||
_ocp4_workload_kubevirt_extra_config: "" |