aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles
diff options
context:
space:
mode:
authorJuraj Linkeš <juraj.linkes@pantheon.tech>2021-11-12 13:31:12 +0100
committerPeter Mikus <pmikus@cisco.com>2021-12-21 06:59:31 +0000
commitd645f8b1cac7a9727bbfa77de1847fdf03a60631 (patch)
tree1e062b65e47dd88cef0f2c1505d7a08b5085f3e9 /fdio.infra.ansible/roles
parentd24bcf6e10fdee8e6ba1a0ef2f75e69d9e9d0a40 (diff)
ansible: add kernel pinning to vpp device
Change-Id: Ife26766e5f92ab95b537b39c25202fec6be27db3 Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
Diffstat (limited to 'fdio.infra.ansible/roles')
-rw-r--r--fdio.infra.ansible/roles/kernel/tasks/ubuntu_bionic.yaml11
-rw-r--r--fdio.infra.ansible/roles/kernel/tasks/ubuntu_focal.yaml11
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(