[fix] role:system-basics:add missing become:true directives [mod] role:system-basisc:also install htop and tmux

This commit is contained in:
roydfalk 2024-06-01 13:47:20 +02:00
parent 8d57e57df8
commit 0e913099e6

View file

@ -1,12 +1,14 @@
[ [
{ {
"name": "Set timezone to Berlin", "name": "Set timezone to Berlin",
"become": true,
"community.general.timezone": { "community.general.timezone": {
"name": "Europe/Berlin" "name": "Europe/Berlin"
} }
}, },
{ {
"name": "Limit syslogs", "name": "Limit syslogs",
"become": true,
"ansible.builtin.lineinfile": { "ansible.builtin.lineinfile": {
"dest": "/etc/systemd/journald.conf", "dest": "/etc/systemd/journald.conf",
"regexp": "^#?\\s*SystemMaxFileSize", "regexp": "^#?\\s*SystemMaxFileSize",
@ -15,16 +17,19 @@
"notify": "restart journal" "notify": "restart journal"
}, },
{ {
"name": "Install vim", "name": "install packages",
"become": true, "become": true,
"ansible.builtin.apt": { "ansible.builtin.apt": {
"pkg": [ "pkg": [
"vim" "vim",
"htop",
"tmux"
] ]
} }
}, },
{ {
"name": "Set vim as default editor", "name": "Set vim as default editor",
"become": true,
"community.general.alternatives": { "community.general.alternatives": {
"name": "editor", "name": "editor",
"path": "/usr/bin/vim.basic" "path": "/usr/bin/vim.basic"
@ -32,6 +37,7 @@
}, },
{ {
"name": "Disable root login without key", "name": "Disable root login without key",
"become": true,
"ansible.builtin.lineinfile": { "ansible.builtin.lineinfile": {
"dest": "/etc/ssh/sshd_config", "dest": "/etc/ssh/sshd_config",
"regexp": "^#?PermitRootLogin ", "regexp": "^#?PermitRootLogin ",