mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
script: Add support for chdir argument
This commit is contained in:
parent
3c4db1e8dd
commit
804f40f7a5
3 changed files with 30 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue