Apply review comments
This commit is contained in:
parent
e70ab02fed
commit
389b171401
2 changed files with 40 additions and 31 deletions
|
@ -14,6 +14,15 @@
|
||||||
},
|
},
|
||||||
"notify": "restart journal"
|
"notify": "restart journal"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "Install vim",
|
||||||
|
"become": true,
|
||||||
|
"ansible.builtin.apt": {
|
||||||
|
"pkg": [
|
||||||
|
"vim"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Set vim as default editor",
|
"name": "Set vim as default editor",
|
||||||
"community.general.alternatives": {
|
"community.general.alternatives": {
|
||||||
|
|
|
@ -1,33 +1,33 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "Allow unattended reboots (1)",
|
"name": "Allow unattended reboots (1)",
|
||||||
"lineinfile": {
|
"lineinfile": {
|
||||||
"dest": "/etc/apt/apt.conf.d/50unattended-upgrades",
|
"dest": "/etc/apt/apt.conf.d/50unattended-upgrades",
|
||||||
"regexp": "^(//)?Unattended-Upgrade::Automatic-Reboot ",
|
"regexp": "^(//)?Unattended-Upgrade::Automatic-Reboot ",
|
||||||
"line": "Unattended-Upgrade::Automatic-Reboot \"true\";"
|
"line": "Unattended-Upgrade::Automatic-Reboot \"true\";"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Allow unattended reboots (2)",
|
"name": "Allow unattended reboots (2)",
|
||||||
"lineinfile": {
|
"lineinfile": {
|
||||||
"dest": "/etc/apt/apt.conf.d/50unattended-upgrades",
|
"dest": "/etc/apt/apt.conf.d/50unattended-upgrades",
|
||||||
"regexp": "^(//)?Unattended-Upgrade::Automatic-Reboot-Time ",
|
"regexp": "^(//)?Unattended-Upgrade::Automatic-Reboot-Time ",
|
||||||
"line": "Unattended-Upgrade::Automatic-Reboot-Time \"23:55\";"
|
"line": "Unattended-Upgrade::Automatic-Reboot-Time \"23:55\";"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Allow more origins for updates",
|
"name": "Allow more origins for updates",
|
||||||
"lineinfile": {
|
"lineinfile": {
|
||||||
"dest": "/etc/apt/apt.conf.d/50unattended-upgrades",
|
"dest": "/etc/apt/apt.conf.d/50unattended-upgrades",
|
||||||
"regexp": "^(//\\s*)?\"\\$\\{distro_id\\}:\\$\\{distro_codename\\}-updates\";",
|
"regexp": "^(//\\s*)?\"\\$\\{distro_id\\}:\\$\\{distro_codename\\}-updates\";",
|
||||||
"line": "\"${distro_id}:${distro_codename}-updates\";"
|
"line": "\"${distro_id}:${distro_codename}-updates\";"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Enable unattended upgrades",
|
"name": "Enable unattended upgrades",
|
||||||
"copy": {
|
"copy": {
|
||||||
"src": "20auto-upgrades",
|
"src": "20auto-upgrades",
|
||||||
"dest": "/etc/apt/apt.conf.d/20auto-upgrades"
|
"dest": "/etc/apt/apt.conf.d/20auto-upgrades"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Reference in a new issue