From 0e913099e67b47e9a4362d40e958fac1675ba72f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Fra=C3=9F?= Date: Sat, 1 Jun 2024 13:47:20 +0200 Subject: [PATCH] [fix] role:system-basics:add missing become:true directives [mod] role:system-basisc:also install htop and tmux --- roles/system-basics/tasks/main.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/roles/system-basics/tasks/main.json b/roles/system-basics/tasks/main.json index 08c35fe..11a8792 100644 --- a/roles/system-basics/tasks/main.json +++ b/roles/system-basics/tasks/main.json @@ -1,12 +1,14 @@ [ { "name": "Set timezone to Berlin", + "become": true, "community.general.timezone": { "name": "Europe/Berlin" } }, { "name": "Limit syslogs", + "become": true, "ansible.builtin.lineinfile": { "dest": "/etc/systemd/journald.conf", "regexp": "^#?\\s*SystemMaxFileSize", @@ -15,16 +17,19 @@ "notify": "restart journal" }, { - "name": "Install vim", + "name": "install packages", "become": true, "ansible.builtin.apt": { "pkg": [ - "vim" + "vim", + "htop", + "tmux" ] } }, { "name": "Set vim as default editor", + "become": true, "community.general.alternatives": { "name": "editor", "path": "/usr/bin/vim.basic" @@ -32,6 +37,7 @@ }, { "name": "Disable root login without key", + "become": true, "ansible.builtin.lineinfile": { "dest": "/etc/ssh/sshd_config", "regexp": "^#?PermitRootLogin ",