Apply 6 suggestion(s) to 2 file(s)

This commit is contained in:
roydfalk 2024-04-24 17:38:11 +00:00 committed by Marius Melzer
parent fcad5b9354
commit e70ab02fed
2 changed files with 6 additions and 6 deletions

View file

@ -1,17 +1,17 @@
[ [
{ {
"name": "restart sshd", "name": "restart sshd",
"service": { "ansible.builtin.service": {
"name": "sshd", "name": "sshd",
"state": "restarted" "state": "restarted"
} }
}, },
{ {
"name": "restart journal", "name": "restart journal",
"service": { "ansible.builtin.service": {
"name": "systemd-journald", "name": "systemd-journald",
"state": "restarted", "state": "restarted",
"enabled": "yes" "enabled": true
} }
} }
] ]

View file

@ -7,7 +7,7 @@
}, },
{ {
"name": "Limit syslogs", "name": "Limit syslogs",
"lineinfile": { "ansible.builtin.lineinfile": {
"dest": "/etc/systemd/journald.conf", "dest": "/etc/systemd/journald.conf",
"regexp": "^#?\\s*SystemMaxFileSize", "regexp": "^#?\\s*SystemMaxFileSize",
"line": "SystemMaxFileSize=2G" "line": "SystemMaxFileSize=2G"
@ -16,14 +16,14 @@
}, },
{ {
"name": "Set vim as default editor", "name": "Set vim as default editor",
"alternatives": { "community.general.alternatives": {
"name": "editor", "name": "editor",
"path": "/usr/bin/vim.basic" "path": "/usr/bin/vim.basic"
} }
}, },
{ {
"name": "Disable root login without key", "name": "Disable root login without key",
"lineinfile": { "ansible.builtin.lineinfile": {
"dest": "/etc/ssh/sshd_config", "dest": "/etc/ssh/sshd_config",
"regexp": "^#?PermitRootLogin ", "regexp": "^#?PermitRootLogin ",
"line": "PermitRootLogin without-password" "line": "PermitRootLogin without-password"