Allow stopping ubuntu unattended-upgrades (#12174)

Signed-off-by: Ekko Tu <lihai.tu@daocloud.io>
This commit is contained in:
Ekko
2025-05-20 01:07:16 -07:00
committed by GitHub
parent 019cf2ab42
commit 6c5c45b328
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -19,3 +19,11 @@
when:
- ubuntu_kernel_unattended_upgrades_disabled
- 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