diff options
Diffstat (limited to 'fdio.infra.ansible/roles/kernel/tasks/ubuntu_focal.yaml')
-rw-r--r-- | fdio.infra.ansible/roles/kernel/tasks/ubuntu_focal.yaml | 11 |
1 files changed, 11 insertions, 0 deletions
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( |