mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
command modules: optional stdin_add_newline (#45170)
* stdin_add_newline: allow newline suppression on command modules * command/shell: test for stdin_add_newline * changelog for stdin_add_newline
This commit is contained in:
committed by
Brian Coca
parent
1a91b797bd
commit
8eacaf6a77
@@ -60,6 +60,12 @@ options:
|
||||
description:
|
||||
- Set the stdin of the command directly to the specified value.
|
||||
version_added: "2.4"
|
||||
stdin_add_newline:
|
||||
type: bool
|
||||
default: yes
|
||||
description:
|
||||
- If set to C(yes), append a newline to stdin data.
|
||||
version_added: "2.8"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user