script: Add support for chdir argument

This commit is contained in:
Karim BEN YOUSSEF 2017-07-05 16:39:00 +02:00 committed by Toshio Kuratomi
parent 3c4db1e8dd
commit 804f40f7a5
3 changed files with 30 additions and 2 deletions

View file

@ -50,6 +50,12 @@ options:
required: no
default: null
version_added: "1.5"
chdir:
description:
- cd into this directory on the remote node before running the script
version_added: "2.4"
required: false
default: null
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 pseudo-tty allocation via -tt when scripts are executed. pseudo-ttys do not have a stderr channel and all