From bcb6c2d8941fb78083c407b4c177a311dc88e3ed Mon Sep 17 00:00:00 2001 From: abenmiloud Date: Thu, 5 Nov 2020 10:16:28 +0100 Subject: [PATCH] Ajouter autre combo ANSIBLE_FORCE_COLOR=true | aha --- HowtoAnsible.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/HowtoAnsible.md b/HowtoAnsible.md index 2db98b2a..b6f1f050 100644 --- a/HowtoAnsible.md +++ b/HowtoAnsible.md @@ -1299,6 +1299,12 @@ Pour enregistrer la sortie d'exécution d'un playbook dans un fichier HTML (en g $ ANSIBLE_FORCE_COLOR=true ansible-playbook playbook.yml 2>&1 | aha --black > output.html ~~~ +Si on veut quand même avoir la sortie dans son terminal : + +```sh +$ ANSIBLE_FORCE_COLOR=true ansible-playbook playbook.yml 2>&1 | tee /dev/fd/2 | aha > playbook_output.html +``` + ## Exemples Voir [/HowtoAnsible/Exemples]().