Commit 35a76c09 authored by nanahira's avatar nanahira

add cloud kernel custom

parent 6fae6e65
Pipeline #1863 passed with stage
in 3 minutes and 57 seconds
...@@ -23,3 +23,4 @@ cpufreq_policy: none ...@@ -23,3 +23,4 @@ cpufreq_policy: none
vm_agents_status: present vm_agents_status: present
customization: true customization: true
nvidia_driver_version: null nvidia_driver_version: null
cloud_kernel: auto # or enabled / disabled
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
- name: use non-cloud kernel - name: use non-cloud kernel
set_fact: set_fact:
install_kernel_name: linux-image-{{install_kernel_arch}},linux-headers-{{install_kernel_arch}} install_kernel_name: linux-image-{{install_kernel_arch}},linux-headers-{{install_kernel_arch}}
when: not (ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm") when: cloud_kernel == "disabled" or cloud_kernel == "auto" and not (ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm")
- name: use cloud kernel - name: use cloud kernel
set_fact: set_fact:
install_kernel_name: linux-image-cloud-{{install_kernel_arch}},linux-headers-cloud-{{install_kernel_arch}} install_kernel_name: linux-image-cloud-{{install_kernel_arch}},linux-headers-cloud-{{install_kernel_arch}}
when: ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm" when: cloud_kernel == "enabled" or cloud_kernel == "auto" and ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm"
- name: install kernel - name: install kernel
become: true become: true
apt: apt:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment