ansible-base/roles/system-basics/tasks/main.json

33 lines
705 B
JSON

[
{
"name": "Set timezone to Berlin",
"community.general.timezone": {
"name": "Europe/Berlin"
}
},
{
"name": "Limit syslogs",
"ansible.builtin.lineinfile": {
"dest": "/etc/systemd/journald.conf",
"regexp": "^#?\\s*SystemMaxFileSize",
"line": "SystemMaxFileSize=2G"
},
"notify": "restart journal"
},
{
"name": "Set vim as default editor",
"community.general.alternatives": {
"name": "editor",
"path": "/usr/bin/vim.basic"
}
},
{
"name": "Disable root login without key",
"ansible.builtin.lineinfile": {
"dest": "/etc/ssh/sshd_config",
"regexp": "^#?PermitRootLogin ",
"line": "PermitRootLogin without-password"
},
"notify": "restart sshd"
}
]