Apply 6 suggestion(s) to 2 file(s)
This commit is contained in:
parent
fcad5b9354
commit
e70ab02fed
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue