From bc1364952b7301013f5cebb27a3a64055221a036 Mon Sep 17 00:00:00 2001 From: rchincholkar Date: Fri, 8 May 2020 01:09:16 +0530 Subject: [PATCH] changing $HOME to $HOSTNAME in Synopsis (#69273) $HOME variable does work with command module. This may be a bug. $HOSTNAME never works. Changing the example to use $HOSTNAME in the Synopsis of command module documentation page. --- lib/ansible/modules/commands/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/commands/command.py b/lib/ansible/modules/commands/command.py index 9b673140e4b..6aa4391e5ec 100644 --- a/lib/ansible/modules/commands/command.py +++ b/lib/ansible/modules/commands/command.py @@ -22,7 +22,7 @@ description: - The C(command) module takes the command name followed by a list of space-delimited arguments. - The given command will be executed on all selected nodes. - The command(s) will not be - processed through the shell, so variables like C($HOME) and operations + processed through the shell, so variables like C($HOSTNAME) and operations like C("*"), C("<"), C(">"), C("|"), C(";") and C("&") will not work. Use the M(shell) module if you need these features. - To create C(command) tasks that are easier to read than the ones using space-delimited