從EVE-NG獲取網絡補丁內核安裝

安裝ansible

sudo pip install ansible

創建文件kernel.yml,內容如下:

- name: Provision Wistar
  hosts: localhost
  connection: local
  become: true
  vars:
    wistar_branch: master

  tasks:
  - name: Get the EVE-NG repo key
    apt_key:
      url: http://www.eve-ng.net/repo/[email protected]
      state: present

  - name: Add EVE-NG repository
    apt_repository:
      repo: deb [arch=amd64]  http://www.eve-ng.net/repo xenial main
      state: present

  - name: Install the EVE-NG kernel
    apt:
      name: linux-image-4.9.40-eve-ng-ukms-2+
      state: present
      update_cache: yes

執行安裝命令:

sudo ansible-playbook kernel.yml

然後重啓主機。
重新啓動後輸入uname -r查看,內核即爲想要的內核:

nettest@nettest:~$ uname -r
4.9.40-eve-ng-ukms-2+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章