mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-12 03:47:38 -02:30
Allow stopping ubuntu unattended-upgrades (#12174)
Signed-off-by: Ekko Tu <lihai.tu@daocloud.io>
This commit is contained in:
@@ -19,6 +19,8 @@ use_oracle_public_repo: true
|
|||||||
## Ubuntu specific variables
|
## Ubuntu specific variables
|
||||||
# Disable unattended-upgrades for Linux kernel and all packages start with linux- on Ubuntu
|
# Disable unattended-upgrades for Linux kernel and all packages start with linux- on Ubuntu
|
||||||
ubuntu_kernel_unattended_upgrades_disabled: false
|
ubuntu_kernel_unattended_upgrades_disabled: false
|
||||||
|
# Stop unattended-upgrades if it is currently running on Ubuntu
|
||||||
|
ubuntu_stop_unattended_upgrades: false
|
||||||
|
|
||||||
fedora_coreos_packages:
|
fedora_coreos_packages:
|
||||||
- python
|
- python
|
||||||
|
|||||||
@@ -19,3 +19,11 @@
|
|||||||
when:
|
when:
|
||||||
- ubuntu_kernel_unattended_upgrades_disabled
|
- ubuntu_kernel_unattended_upgrades_disabled
|
||||||
- unattended_upgrades_file_stat.stat.exists
|
- unattended_upgrades_file_stat.stat.exists
|
||||||
|
|
||||||
|
- name: Stop unattended-upgrades service
|
||||||
|
service:
|
||||||
|
name: unattended-upgrades
|
||||||
|
state: stopped
|
||||||
|
enabled: false
|
||||||
|
become: true
|
||||||
|
when: ubuntu_stop_unattended_upgrades
|
||||||
|
|||||||
Reference in New Issue
Block a user