Drop the quoted description and the empty devices map, as written by `mise run import`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018inUJksoKAfKRWoSo1tvv6
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
name: unattended-upgrades
|
|
description: Profil pour activer les unattended upgrades sur Ubuntu
|
|
config:
|
|
cloud-init.vendor-data: |
|
|
#cloud-config
|
|
package_update: true
|
|
package_upgrade: true
|
|
packages:
|
|
- unattended-upgrades
|
|
- apt-listchanges
|
|
|
|
write_files:
|
|
- path: /etc/apt/apt.conf.d/20auto-upgrades
|
|
content: |
|
|
APT::Periodic::Update-Package-Lists "1";
|
|
APT::Periodic::Unattended-Upgrade "1";
|
|
APT::Periodic::AutocleanInterval "7";
|
|
|
|
- path: /etc/apt/apt.conf.d/50unattended-upgrades
|
|
content: |
|
|
Unattended-Upgrade::Allowed-Origins {
|
|
"${distro_id}:${distro_codename}";
|
|
"${distro_id}:${distro_codename}-security";
|
|
"${distro_id}ESM:${distro_codename}";
|
|
};
|
|
Unattended-Upgrade::Automatic-Reboot "false";
|
|
Unattended-Upgrade::Automatic-Reboot-Time "02:00";
|
|
Unattended-Upgrade::Remove-Unused-Dependencies "true";
|
|
|
|
runcmd:
|
|
- [ systemctl, enable, --now, unattended-upgrades ]
|