Add 'stdin' argument to command/shell modules

Fixes #14380 #23428
This commit is contained in:
Andy Freeland 2017-07-26 10:14:59 -07:00 committed by Toshio Kuratomi
parent d52c0242c2
commit 393909d0cc
3 changed files with 44 additions and 1 deletions

View file

@ -60,6 +60,12 @@ options:
required: false
default: True
version_added: "1.8"
stdin:
version_added: "2.4"
description:
- Set the stdin of the command directly to the specified value.
required: false
default: null
notes:
- If you want to execute a command securely and predictably, it may be
better to use the M(command) module instead. Best practices when writing