diff --git a/lib/ansible/plugins/shell/sh.py b/lib/ansible/plugins/shell/sh.py index 6fbb7439cc5..1e69665c0f7 100644 --- a/lib/ansible/plugins/shell/sh.py +++ b/lib/ansible/plugins/shell/sh.py @@ -42,8 +42,8 @@ class ShellModule(object): _SHELL_REDIRECT_ALLNULL = '> /dev/null 2>&1' _SHELL_AND = '&&' _SHELL_OR = '||' - _SHELL_SUB_LEFT = '"$(' - _SHELL_SUB_RIGHT = ')"' + _SHELL_SUB_LEFT = '"`' + _SHELL_SUB_RIGHT = '`"' _SHELL_GROUP_LEFT = '(' _SHELL_GROUP_RIGHT = ')'