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",
"service": {
"ansible.builtin.service": {
"name": "sshd",
"state": "restarted"
}
},
{
"name": "restart journal",
"service": {
"ansible.builtin.service": {
"name": "systemd-journald",
"state": "restarted",
"enabled": "yes"
"enabled": true
}
}
]

View file

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