From 3a0056e5712c1076b6451745bccfd0aaa24f4609 Mon Sep 17 00:00:00 2001 From: jctanner Date: Tue, 21 Jun 2016 13:09:54 -0400 Subject: [PATCH] Add a note about using the script module with pseudo-tty's lack of stderr channel (#4000) Addresses #3610 --- lib/ansible/modules/commands/script.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/commands/script.py b/lib/ansible/modules/commands/script.py index 9fed7928ce..1d07bbad80 100644 --- a/lib/ansible/modules/commands/script.py +++ b/lib/ansible/modules/commands/script.py @@ -46,6 +46,7 @@ options: version_added: "1.5" notes: - It is usually preferable to write Ansible modules than pushing scripts. Convert your script to an Ansible module for bonus points! + - The ssh connection plugin will force psuedo-tty allocation via -tt when scripts are executed. psuedo-ttys do not have a stderr channel and all stderr is sent to stdout. If you depend on separated stdout and stderr result keys, please switch to a copy+command set of tasks instead of using script. author: - Ansible Core Team - Michael DeHaan