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

49 lines
914 B
JSON
Raw Normal View History

[
{
"name": "Set timezone to Berlin",
"become": true,
"community.general.timezone": {
"name": "Europe/Berlin"
}
},
{
"name": "Limit syslogs",
"become": true,
2024-04-24 17:38:11 +00:00
"ansible.builtin.lineinfile": {
"dest": "/etc/systemd/journald.conf",
"regexp": "^#?\\s*SystemMaxFileSize",
"line": "SystemMaxFileSize=2G"
},
"notify": "restart journal"
},
2024-04-24 20:02:51 +02:00
{
"name": "install packages",
2024-04-24 20:02:51 +02:00
"become": true,
"ansible.builtin.apt": {
"pkg": [
"vim",
"htop",
"tmux"
2024-04-24 20:02:51 +02:00
]
}
},
{
"name": "Set vim as default editor",
"become": true,
2024-04-24 17:38:11 +00:00
"community.general.alternatives": {
"name": "editor",
"path": "/usr/bin/vim.basic"
}
},
{
"name": "Disable root login without key",
"become": true,
2024-04-24 17:38:11 +00:00
"ansible.builtin.lineinfile": {
"dest": "/etc/ssh/sshd_config",
"regexp": "^#?PermitRootLogin ",
"line": "PermitRootLogin without-password"
},
"notify": "restart sshd"
}
]