X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=fdio.infra.ansible%2Froles%2Fkernel%2Ftasks%2Fubuntu_bionic.yaml;h=871cc9eee738d31e3ffdb3e627a918cfbc9f314f;hb=refs%2Fchanges%2F79%2F34479%2F4;hp=349c853c11118f1edc61aca27efeb13d61b0b2e0;hpb=df5672b3d9c29b51397f4770eb992c9f3f3955ce;p=csit.git diff --git a/fdio.infra.ansible/roles/kernel/tasks/ubuntu_bionic.yaml b/fdio.infra.ansible/roles/kernel/tasks/ubuntu_bionic.yaml index 349c853c11..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( @@ -48,4 +59,4 @@ state: absent purge: true tags: - - kernel-inst \ No newline at end of file + - kernel-inst