ansible: add kernel pinning to vpp device
[csit.git] / fdio.infra.ansible / roles / kernel / tasks / ubuntu_bionic.yaml
index 950e1bf..871cc9e 100644 (file)
   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(