commit 6a6597bb6b7604db680582dc97ec3970092c36be parent e9aa62fedb52276e6dd6b8b6b1794547a189a86e Author: Florian Dold <florian@dold.me> Date: Mon, 19 May 2025 20:58:02 +0200 document useful ansible commands Diffstat:
| A | TIPS.md | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/TIPS.md b/TIPS.md @@ -0,0 +1,5 @@ +Show all known variables for a host (spec in this case): + +``` +ansible spec -m debug -a "var=hostvars[inventory_hostname]" +```