From 1a4d97ddde1b8a1386619baba325e477063d2116 Mon Sep 17 00:00:00 2001 From: GlennIgen Date: Fri, 22 May 2026 22:39:40 +0200 Subject: [PATCH] =?UTF-8?q?docs:=20tilf=C3=B8j=20log-kommando=20under=20K?= =?UTF-8?q?=C3=B8r-sektionen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index c949453..5c5d164 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,12 @@ ansible-galaxy collection install community.general ansible-playbook -K site.yml ``` +Med log til fil: + +```bash +ansible-playbook -K site.yml -v 2>&1 | tee ansible.log +``` + `-K` prompter for sudo-password. Playbooken kører kun på `localhost`. ## Dotfiles