
Enable unattended upgrades and triggers unattended reboots (23:55 after an upgrade which needs reboot). Attention: this is specific to debian-style linux systems (Debian, Ubuntu,...).
33 lines
984 B
JSON
33 lines
984 B
JSON
[
|
|
{
|
|
"name": "Allow unattended reboots (1)",
|
|
"lineinfile": {
|
|
"dest": "/etc/apt/apt.conf.d/50unattended-upgrades",
|
|
"regexp": "^(//)?Unattended-Upgrade::Automatic-Reboot ",
|
|
"line": "Unattended-Upgrade::Automatic-Reboot \"true\";"
|
|
}
|
|
},
|
|
{
|
|
"name": "Allow unattended reboots (2)",
|
|
"lineinfile": {
|
|
"dest": "/etc/apt/apt.conf.d/50unattended-upgrades",
|
|
"regexp": "^(//)?Unattended-Upgrade::Automatic-Reboot-Time ",
|
|
"line": "Unattended-Upgrade::Automatic-Reboot-Time \"23:55\";"
|
|
}
|
|
},
|
|
{
|
|
"name": "Allow more origins for updates",
|
|
"lineinfile": {
|
|
"dest": "/etc/apt/apt.conf.d/50unattended-upgrades",
|
|
"regexp": "^(//\\s*)?\"\\$\\{distro_id\\}:\\$\\{distro_codename\\}-updates\";",
|
|
"line": "\"${distro_id}:${distro_codename}-updates\";"
|
|
}
|
|
},
|
|
{
|
|
"name": "Enable unattended upgrades",
|
|
"copy": {
|
|
"src": "20auto-upgrades",
|
|
"dest": "/etc/apt/apt.conf.d/20auto-upgrades"
|
|
}
|
|
}
|
|
]
|