From d645f8b1cac7a9727bbfa77de1847fdf03a60631 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Juraj=20Linke=C5=A1?= Date: Fri, 12 Nov 2021 13:31:12 +0100 Subject: [PATCH] ansible: add kernel pinning to vpp device MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ife26766e5f92ab95b537b39c25202fec6be27db3 Signed-off-by: Juraj Linkeš --- fdio.infra.ansible/roles/kernel/tasks/ubuntu_bionic.yaml | 11 +++++++++++ fdio.infra.ansible/roles/kernel/tasks/ubuntu_focal.yaml | 11 +++++++++++ fdio.infra.ansible/vpp_device.yaml | 2 ++ 3 files changed, 24 insertions(+) diff --git a/fdio.infra.ansible/roles/kernel/tasks/ubuntu_bionic.yaml b/fdio.infra.ansible/roles/kernel/tasks/ubuntu_bionic.yaml index 950e1bf44c..871cc9eee7 100644 --- a/fdio.infra.ansible/roles/kernel/tasks/ubuntu_bionic.yaml +++ b/fdio.infra.ansible/roles/kernel/tasks/ubuntu_bionic.yaml @@ -22,6 +22,17 @@ tags: - kernel-inst +- name: Disable APT auto upgrade + lineinfile: + path: "/etc/apt/apt.conf.d/20auto-upgrades" + state: "present" + regexp: "APT::Periodic::Unattended-Upgrade \"[0-9]\";" + line: "APT::Periodic::Unattended-Upgrade \"0\";" + create: true + mode: 0644 + tags: + - kernel-inst + - name: Ensure Packages Versions apt: name: "{{ apt_kernel_list | deb_kernel_pkg( diff --git a/fdio.infra.ansible/roles/kernel/tasks/ubuntu_focal.yaml b/fdio.infra.ansible/roles/kernel/tasks/ubuntu_focal.yaml index bc59db3761..3e2686d565 100644 --- a/fdio.infra.ansible/roles/kernel/tasks/ubuntu_focal.yaml +++ b/fdio.infra.ansible/roles/kernel/tasks/ubuntu_focal.yaml @@ -22,6 +22,17 @@ tags: - kernel-inst +- name: Disable APT auto upgrade + lineinfile: + path: "/etc/apt/apt.conf.d/20auto-upgrades" + state: "present" + regexp: "APT::Periodic::Unattended-Upgrade \"[0-9]\";" + line: "APT::Periodic::Unattended-Upgrade \"0\";" + create: true + mode: 0644 + tags: + - kernel-inst + - name: Ensure Packages Versions apt: name: "{{ apt_kernel_list | deb_kernel_pkg( diff --git a/fdio.infra.ansible/vpp_device.yaml b/fdio.infra.ansible/vpp_device.yaml index fbf7ba12ed..ced882a148 100644 --- a/fdio.infra.ansible/vpp_device.yaml +++ b/fdio.infra.ansible/vpp_device.yaml @@ -18,6 +18,8 @@ tags: baremetal - role: common tags: common + - role: kernel + tags: kernel - role: intel tags: intel - role: docker -- 2.16.6