Commit 5be216be authored by nanahira's avatar nanahira

support arm

parent b2292ac4
Pipeline #1783 passed with stage
in 4 minutes and 19 seconds
- name: amd64 arch
set_fact:
install_kernel_arch: amd64
when: ansible_architecture == 'x86_64'
- name: arm64 arch
set_fact:
install_kernel_arch: arm64
when: ansible_architecture == 'aarch64'
- name: use non-cloud kernel
set_fact:
install_kernel_name: linux-image-amd64,linux-headers-amd64
install_kernel_name: linux-image-{{install_kernel_arch}},linux-headers-{{install_kernel_arch}}
when: not (ansible_virtualization_role == "guest" and ansible_virtualization_type == "kvm")
- name: use cloud kernel
set_fact:
install_kernel_name: linux-image-cloud-amd64,linux-headers-cloud-amd64
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"
- name: install kernel
become: true
......
......@@ -28,7 +28,7 @@
when: nvidia_driver_version
- name: debian kernel
include_tasks: debian_kernel.yml
when: ansible_distribution == 'Debian' and ansible_virtualization_type != "docker" and ansible_architecture == 'x86_64'
when: ansible_distribution == 'Debian' and ansible_virtualization_type != "docker"
- name: 系统源 重启
become: true
shell: reboot
......
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