mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-10 05:59:30 -02:30
Support disable unattended-upgrades for Linux kernel and all packages start with linux- on Ubuntu (#11296)
Signed-off-by: tu1h <lihai.tu@daocloud.io>
This commit is contained in:
@@ -62,3 +62,14 @@
|
||||
- '"changed its" in bootstrap_update_apt_result.stdout'
|
||||
- '"value from" in bootstrap_update_apt_result.stdout'
|
||||
ignore_errors: true
|
||||
|
||||
- name: Disable kernel unattended-upgrades
|
||||
lineinfile:
|
||||
path: /etc/apt/apt.conf.d/50unattended-upgrades
|
||||
insertafter: "Unattended-Upgrade::Package-Blacklist"
|
||||
line: '"linux-";'
|
||||
state: present
|
||||
become: true
|
||||
when:
|
||||
- os_release_dict['ID'] == 'ubuntu'
|
||||
- ubuntu_kernel_unattended_upgrades_disabled
|
||||
|
||||
Reference in New Issue
Block a user