2024-06-03 23:54:26 +02:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "Set timezone to Berlin",
|
|
|
|
"become": true,
|
|
|
|
"community.general.timezone": {
|
|
|
|
"name": "Europe/Berlin"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Limit syslogs",
|
|
|
|
"become": true,
|
|
|
|
"ansible.builtin.lineinfile": {
|
|
|
|
"dest": "/etc/systemd/journald.conf",
|
|
|
|
"regexp": "^#?\\s*SystemMaxFileSize",
|
|
|
|
"line": "SystemMaxFileSize=2G"
|
|
|
|
},
|
|
|
|
"notify": "restart journal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "install packages",
|
|
|
|
"become": true,
|
|
|
|
"ansible.builtin.apt": {
|
|
|
|
"pkg": [
|
2024-07-09 09:10:50 +02:00
|
|
|
"acl",
|
2024-06-03 23:54:26 +02:00
|
|
|
"vim",
|
|
|
|
"htop",
|
|
|
|
"tmux",
|
|
|
|
"rsync"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Set vim as default editor",
|
|
|
|
"become": true,
|
|
|
|
"community.general.alternatives": {
|
|
|
|
"name": "editor",
|
|
|
|
"path": "/usr/bin/vim.basic"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Disable root login without key",
|
|
|
|
"become": true,
|
|
|
|
"ansible.builtin.lineinfile": {
|
|
|
|
"dest": "/etc/ssh/sshd_config",
|
|
|
|
"regexp": "^#?PermitRootLogin ",
|
|
|
|
"line": "PermitRootLogin without-password"
|
|
|
|
},
|
|
|
|
"notify": "restart sshd"
|
|
|
|
}
|
|
|
|
]
|