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