Download OpenAPI specification:
An API for controlling remote systems.
Array of objects (Hosts) A list of inventory items representing remote hosts. |
{- "hosts": [
- {
- "connection": {
- "host": null,
- "username": null,
- "password": null,
- "port": null,
- "property1": "string",
- "property2": "string"
}, - "authentication": {
- "sudo_password": "",
- "su_user": "",
- "su_password": ""
}, - "session": {
- "property1": "string",
- "property2": "string"
}, - "groups": [ ]
}
]
}{- "error": true,
- "value": "string"
}required | object (Connection) The connection details for the remote host. |
Authentication (object) or null The authentication details for the remote host. | |
Session (object) or null The session details for the remote host. | |
| groups | Array of strings (Groups) Default: [] The groups to which the remote host belongs. |
{- "connection": {
- "host": null,
- "username": null,
- "password": null,
- "port": null,
- "property1": "string",
- "property2": "string"
}, - "authentication": {
- "sudo_password": "",
- "su_user": "",
- "su_password": ""
}, - "session": {
- "property1": "string",
- "property2": "string"
}, - "groups": [ ]
}{- "error": true,
- "value": "string"
}Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "error": true,
- "value": {
- "hosts": [
- {
- "connection": {
- "host": null,
- "username": null,
- "password": null,
- "port": null,
- "property1": "string",
- "property2": "string"
}, - "authentication": {
- "sudo_password": "",
- "su_user": "",
- "su_password": ""
}, - "session": {
- "property1": "string",
- "property2": "string"
}, - "groups": [ ]
}
]
}
}
]| cmd required | string (Cmd) Examples: cmd=echo Hello World! cmd=ls -ltr Shell command |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name | |
| sudo | boolean (Sudo) Default: false Whether to use sudo |
| su | boolean (Su) Default: false Whether to use su |
Connection (object) or Connection (null) (Connection) Default: {} Optional connection arguments to pass to Asyncssh create_session(). | |
Session (object) or Session (null) (Session) Default: {} Optional session arguments to pass to Asyncssh create_session(). |
{- "connection": { },
- "session": { }
}[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": {
- "command": "string",
- "subsystem": "string",
- "exit_status": 0,
- "exit_signal": [
- "string",
- true,
- "string",
- "string"
], - "returncode": 0,
- "stdout": "string",
- "stderr": "string"
}
}
]Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "error": true,
- "value": {
- "group": "all",
- "name": "string",
- "sudo": false,
- "su": false,
- "connection": { },
- "session": { },
- "inventory_item": {
- "connection": {
- "host": null,
- "username": null,
- "password": null,
- "port": null,
- "property1": "string",
- "property2": "string"
}, - "authentication": {
- "sudo_password": "",
- "su_user": "",
- "su_password": ""
}, - "session": {
- "property1": "string",
- "property2": "string"
}, - "groups": [ ]
}
}
}
]Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name | |
| sudo | boolean (Sudo) Default: false Whether to use sudo |
| su | boolean (Su) Default: false Whether to use su |
Connection (object) or Connection (null) (Connection) Default: {} Optional connection arguments to pass to Asyncssh create_session(). | |
Session (object) or Session (null) (Session) Default: {} Optional session arguments to pass to Asyncssh create_session(). |
{- "connection": { },
- "session": { }
}[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": ""
}
]| packages required | Array of strings (Packages) List of package names |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name | |
| sudo | boolean (Sudo) Default: false Whether to use sudo |
| su | boolean (Su) Default: false Whether to use su |
Connection (object) or Connection (null) (Connection) Default: {} Optional connection arguments to pass to Asyncssh create_session(). | |
Session (object) or Session (null) (Session) Default: {} Optional session arguments to pass to Asyncssh create_session(). |
{- "connection": { },
- "session": { }
}[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": {
- "command": "string",
- "subsystem": "string",
- "exit_status": 0,
- "exit_signal": [
- "string",
- true,
- "string",
- "string"
], - "returncode": 0,
- "stdout": "string",
- "stderr": "string"
}
}
]| packages required | Array of strings (Packages) List of package names |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name | |
| sudo | boolean (Sudo) Default: false Whether to use sudo |
| su | boolean (Su) Default: false Whether to use su |
Connection (object) or Connection (null) (Connection) Default: {} Optional connection arguments to pass to Asyncssh create_session(). | |
Session (object) or Session (null) (Session) Default: {} Optional session arguments to pass to Asyncssh create_session(). |
{- "connection": { },
- "session": { }
}[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": {
- "command": "string",
- "subsystem": "string",
- "exit_status": 0,
- "exit_signal": [
- "string",
- true,
- "string",
- "string"
], - "returncode": 0,
- "stdout": "string",
- "stderr": "string"
}
}
]Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name | |
| sudo | boolean (Sudo) Default: false Whether to use sudo |
| su | boolean (Su) Default: false Whether to use su |
Connection (object) or Connection (null) (Connection) Default: {} Optional connection arguments to pass to Asyncssh create_session(). | |
Session (object) or Session (null) (Session) Default: {} Optional session arguments to pass to Asyncssh create_session(). |
{- "connection": { },
- "session": { }
}[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": {
- "command": "string",
- "subsystem": "string",
- "exit_status": 0,
- "exit_signal": [
- "string",
- true,
- "string",
- "string"
], - "returncode": 0,
- "stdout": "string",
- "stderr": "string"
}
}
]Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name | |
| sudo | boolean (Sudo) Default: false Whether to use sudo |
| su | boolean (Su) Default: false Whether to use su |
Connection (object) or Connection (null) (Connection) Default: {} Optional connection arguments to pass to Asyncssh create_session(). | |
Session (object) or Session (null) (Session) Default: {} Optional session arguments to pass to Asyncssh create_session(). |
{- "connection": { },
- "session": { }
}[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": {
- "command": "string",
- "subsystem": "string",
- "exit_status": 0,
- "exit_signal": [
- "string",
- true,
- "string",
- "string"
], - "returncode": 0,
- "stdout": "string",
- "stderr": "string"
}
}
]| packages required | Array of strings (Packages) List of package names |
| present | boolean (Present) Default: true Whether the packages should be present or not |
| update | boolean (Update) Default: false Whether or not to update the package list |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name | |
| sudo | boolean (Sudo) Default: false Whether to use sudo |
| su | boolean (Su) Default: false Whether to use su |
Connection (object) or Connection (null) (Connection) Default: {} Optional connection arguments to pass to Asyncssh create_session(). | |
Session (object) or Session (null) (Session) Default: {} Optional session arguments to pass to Asyncssh create_session(). |
{- "connection": { },
- "session": { }
}[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]| srcpaths required | Array of strings (Srcpaths) The paths of the source files or directories to copy |
| dstpath required | string (Dstpath) The path of the destination file or directory to copy into |
| preserve | boolean (Preserve) Default: false Whether or not to preserve the original file attributes |
| recurse | boolean (Recurse) Default: false Whether or not to recursively copy directories |
| block_size | integer (Block Size) >= 1 Default: 16384 The block size to use for file reads and writes |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]| srcpaths required | Array of strings (Srcpaths) The paths of the source files or directories to copy |
| dstpath | string (Dstpath) The path of the destination file or directory to copy into |
| preserve | boolean (Preserve) Default: false Whether or not to preserve the original file attributes |
| recurse | boolean (Recurse) Default: false Whether or not to recursively copy directories |
| block_size | integer (Block Size) >= 1 Default: 16384 The block size to use for file reads and writes |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]| srcpaths required | Array of strings (Srcpaths) The paths of the source files or directories to copy |
| dstpath | string (Dstpath) The path of the destination file or directory to copy into |
| dsthost | string (Dsthost) The group of the host to copy to |
| preserve | boolean (Preserve) Default: false Whether or not to preserve the original file attributes |
| recurse | boolean (Recurse) Default: false Whether or not to recursively copy directories |
| block_size | integer (Block Size) >= 1 Default: 16384 The block size to use for file reads and writes |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Path (string) or Path (string) or Path (string) (Path) Path to check if it's a link |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": false
}
]required | Path (string) or Path (string) or Path (string) (Path) Path to check if it's a file |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": false
}
]required | Path (string) or Path (string) or Path (string) (Path) Path to check if it's a directory |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": false
}
]required | Path (string) or Path (string) or Path (string) (Path) Return the size of a remote file or directory |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": 0
}
]required | Path (string) or Path (string) or Path (string) (Path) Return the last access time of a remote file or directory |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": 0
}
]required | Path (string) or Path (string) or Path (string) (Path) Return the last access time of a remote file or directory |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": 0
}
]required | Path (string) or Path (string) or Path (string) (Path) Return the last modification time of a remote file or directory |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": 0
}
]required | Path (string) or Path (string) or Path (string) (Path) Return the last modification time of a remote file or directory |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": 0
}
]required | Path (string) or Path (string) or Path (string) (Path) Return the creation time of a remote file or directory |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": 0
}
]required | Path (string) or Path (string) or Path (string) (Path) Return the creation time of a remote file or directory |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": 0
}
]Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": ""
}
]required | Path (string) or Path (string) or Path (string) (Path) The path of the remote file or directory to get attributes for |
| follow_symlinks | boolean (Follow Symlinks) Default: true Whether or not to follow symbolic links |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": ""
}
]required | Path (string) or Path (string) or Path (string) (Path) The name of the remote file to read |
Encoding (string) or Encoding (null) (Encoding) Default: "utf-8" The Unicode encoding to use for data read from the remote file | |
Errors (string) or Errors (null) (Errors) Default: "strict" The error-handling mode if an invalid Unicode byte sequence is detected, defaulting to ‘strict’ which raises an exception | |
Block Size (integer) or Block Size (null) (Block Size) Default: -1 The block size to use for read requests | |
Max Requests (integer) or Max Requests (null) (Max Requests) Default: -1 The maximum number of parallel read requests | |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": ""
}
]required | Path (string) or Path (string) or Path (string) (Path) Read the names of the files in a remote directory |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": ""
}
]required | Path (string) or Path (string) or Path (string) (Path) The path of the remote directory to read |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": ""
}
]required | Path (string) or Path (string) or Path (string) (Path) The remote path to check |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": false
}
]required | Path (string) or Path (string) or Path (string) (Path) The remote path to check |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": false
}
]required | Path (string) or Path (string) or Path (string) (Path) The path of the remote file, directory, or link to get attributes for |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": ""
}
]required | Path (string) or Path (string) or Path (string) (Path) The path of the remote symbolic link to follow |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": ""
}
]required | Path (string) or Path (string) or Path (string) (Path) Glob patterns to try and match remote files against |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": ""
}
]required | Path (string) or Path (string) or Path (string) (Path) Glob patterns to try and match remote files against |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "filename": "",
- "longname": "",
- "uid": 0,
- "gid": 0,
- "permissions": 0,
- "atime": 0,
- "mtime": 0,
- "size": 0
}
]required | Path (string) or Path (string) or Path (string) (Path) The path of the remote file system to get attributes for |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": ""
}
]required | Path (string) or Path (string) or Path (string) (Path) The path of the remote directory to canonicalize |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": ""
}
]Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": ""
}
]required | Srcpaths (string) or Srcpaths (string) or Srcpaths (string) or (Array of Srcpaths (strings or strings or strings)) (Srcpaths) The paths of the remote files or directories to copy |
required | Dstpath (string) or Dstpath (string) or Dstpath (string) or Dstpath (null) (Dstpath) The path of the remote file or directory to copy into |
| preserve | boolean (Preserve) Default: false Whether or not to preserve the original file attributes |
| recurse | boolean (Recurse) Default: false Whether or not to recursively copy directories |
| follow_symlinks | boolean (Follow Symlinks) Default: false Whether or not to follow symbolic links |
| sparse | boolean (Sparse) Default: true Whether or not to do a sparse file copy where it is supported |
Block Size (integer) or Block Size (null) (Block Size) Default: -1 The block size to use for file reads and writes | |
Max Requests (integer) or Max Requests (null) (Max Requests) Default: -1 The maximum number of parallel read or write requests | |
Progress Handler (string) or Progress Handler (null) (Progress Handler) Callback function name for upload progress | |
Error Handler (string) or Error Handler (null) (Error Handler) Callback function name for error handling | |
| remote_only | boolean (Remote Only) Default: false Whether or not to only allow this to be a remote copy |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Srcpaths (string) or Srcpaths (string) or Srcpaths (string) or (Array of Srcpaths (strings or strings or strings)) (Srcpaths) The paths of the remote files or directories to copy |
required | Dstpath (string) or Dstpath (string) or Dstpath (string) or Dstpath (null) (Dstpath) The path of the remote file or directory to copy into |
| preserve | boolean (Preserve) Default: false Whether or not to preserve the original file attributes |
| recurse | boolean (Recurse) Default: false Whether or not to recursively copy directories |
| follow_symlinks | boolean (Follow Symlinks) Default: false Whether or not to follow symbolic links |
| sparse | boolean (Sparse) Default: true Whether or not to do a sparse file copy where it is supported |
Block Size (integer) or Block Size (null) (Block Size) Default: -1 The block size to use for file reads and writes | |
Max Requests (integer) or Max Requests (null) (Max Requests) Default: -1 The maximum number of parallel read or write requests | |
Progress Handler (string) or Progress Handler (null) (Progress Handler) Callback function name for upload progress | |
Error Handler (string) or Error Handler (null) (Error Handler) Callback function name for error handling | |
| remote_only | boolean (Remote Only) Default: false Whether or not to only allow this to be a remote copy |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Remotepaths (string) or Remotepaths (string) or Remotepaths (string) or (Array of Remotepaths (strings or strings or strings)) (Remotepaths) The paths of the remote files or directories to download |
required | Localpath (string) or Localpath (string) or Localpath (string) (Localpath) The path of the local file or directory to download into |
| preserve | boolean (Preserve) Default: false Whether or not to preserve the original file attributes |
| recurse | boolean (Recurse) Default: false Whether or not to recursively copy directories |
| follow_symlinks | boolean (Follow Symlinks) Default: false Whether or not to follow symbolic links |
| sparse | boolean (Sparse) Default: true Whether or not to do a sparse file copy where it is supported |
Block Size (integer) or Block Size (null) (Block Size) Default: -1 The block size to use for file reads and writes | |
Max Requests (integer) or Max Requests (null) (Max Requests) Default: -1 The maximum number of parallel read or write requests | |
Progress Handler (string) or Progress Handler (null) (Progress Handler) Callback function name for upload progress | |
Error Handler (string) or Error Handler (null) (Error Handler) Callback function name for error handling | |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Remotepaths (string) or Remotepaths (string) or Remotepaths (string) or (Array of Remotepaths (strings or strings or strings)) (Remotepaths) The paths of the remote files or directories to download |
required | Localpath (string) or Localpath (string) or Localpath (string) (Localpath) The path of the local file or directory to download into |
| preserve | boolean (Preserve) Default: false Whether or not to preserve the original file attributes |
| recurse | boolean (Recurse) Default: false Whether or not to recursively copy directories |
| follow_symlinks | boolean (Follow Symlinks) Default: false Whether or not to follow symbolic links |
| sparse | boolean (Sparse) Default: true Whether or not to do a sparse file copy where it is supported |
Block Size (integer) or Block Size (null) (Block Size) Default: -1 The block size to use for file reads and writes | |
Max Requests (integer) or Max Requests (null) (Max Requests) Default: -1 The maximum number of parallel read or write requests | |
Progress Handler (string) or Progress Handler (null) (Progress Handler) Callback function name for upload progress | |
Error Handler (string) or Error Handler (null) (Error Handler) Callback function name for error handling | |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Localpaths (string) or Localpaths (string) or Localpaths (string) or (Array of Localpaths (strings or strings or strings)) (Localpaths) The paths of the local files or directories to upload |
required | Remotepath (string) or Remotepath (string) or Remotepath (string) (Remotepath) The path of the remote file or directory to upload into |
| preserve | boolean (Preserve) Default: false Whether or not to preserve the original file attributes |
| recurse | boolean (Recurse) Default: false Whether or not to recursively copy directories |
| follow_symlinks | boolean (Follow Symlinks) Default: false Whether or not to follow symbolic links |
| sparse | boolean (Sparse) Default: true Whether or not to do a sparse file copy where it is supported |
Block Size (integer) or Block Size (null) (Block Size) Default: -1 The block size to use for file reads and writes | |
Max Requests (integer) or Max Requests (null) (Max Requests) Default: -1 The maximum number of parallel read or write requests | |
Progress Handler (string) or Progress Handler (null) (Progress Handler) Callback function name for upload progress | |
Error Handler (string) or Error Handler (null) (Error Handler) Callback function name for error handling | |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Localpaths (string) or Localpaths (string) or Localpaths (string) or (Array of Localpaths (strings or strings or strings)) (Localpaths) The paths of the local files or directories to upload |
required | Remotepath (string) or Remotepath (string) or Remotepath (string) (Remotepath) The path of the remote file or directory to upload into |
| preserve | boolean (Preserve) Default: false Whether or not to preserve the original file attributes |
| recurse | boolean (Recurse) Default: false Whether or not to recursively copy directories |
| follow_symlinks | boolean (Follow Symlinks) Default: false Whether or not to follow symbolic links |
| sparse | boolean (Sparse) Default: true Whether or not to do a sparse file copy where it is supported |
Block Size (integer) or Block Size (null) (Block Size) Default: -1 The block size to use for file reads and writes | |
Max Requests (integer) or Max Requests (null) (Max Requests) Default: -1 The maximum number of parallel read or write requests | |
Progress Handler (string) or Progress Handler (null) (Progress Handler) Callback function name for upload progress | |
Error Handler (string) or Error Handler (null) (Error Handler) Callback function name for error handling | |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Path (string) or Path (string) or Path (string) (Path) Directory path |
Permissions (integer) or Permissions (null) (Permissions) Directory permissions as integer | |
Uid (integer) or Uid (null) (Uid) User ID | |
Gid (integer) or Gid (null) (Gid) Group ID | |
Atime (integer) or Atime (null) (Atime) Access time | |
Mtime (integer) or Mtime (null) (Mtime) Modification time | |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Path (string) or Path (string) or Path (string) (Path) The path of the remote file or directory to set attributes for |
Permissions (integer) or Permissions (null) (Permissions) Directory permissions as integer | |
Uid (integer) or Uid (null) (Uid) User ID | |
Gid (integer) or Gid (null) (Gid) Group ID | |
Atime (integer) or Atime (null) (Atime) Access time | |
Mtime (integer) or Mtime (null) (Mtime) Modification time | |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Path (string) or Path (string) or Path (string) (Path) Directory path |
Permissions (integer) or Permissions (null) (Permissions) Directory permissions as integer | |
Uid (integer) or Uid (null) (Uid) User ID | |
Gid (integer) or Gid (null) (Gid) Group ID | |
Atime (integer) or Atime (null) (Atime) Access time | |
Mtime (integer) or Mtime (null) (Mtime) Modification time | |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Path (string) or Path (string) or Path (string) (Path) The path of the remote directory to remove |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Path (string) or Path (string) or Path (string) (Path) The path of the parent directory to remove |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Path (string) or Path (string) or Path (string) (Path) Directory path |
Permissions (integer) or Permissions (null) (Permissions) Directory permissions as integer | |
| follow_symlinks | boolean (Follow Symlinks) Default: false Whether or not to follow symbolic links |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Path (string) or Path (string) or Path (string) (Path) Directory path |
| follow_symlinks | boolean (Follow Symlinks) Default: false Whether or not to follow symbolic links |
Uid (integer) or Uid (null) (Uid) User ID | |
Gid (integer) or Gid (null) (Gid) Group ID | |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Path (string) or Path (string) or Path (string) (Path) Directory path |
| follow_symlinks | boolean (Follow Symlinks) Default: false Whether or not to follow symbolic links |
Atime (integer) or Atime (null) (Atime) Access time, as seconds relative to the UNIX epoch | |
Mtime (integer) or Mtime (null) (Mtime) Modify time, as seconds relative to the UNIX epoch | |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Path (string) or Path (string) or Path (string) (Path) The path to set as the new remote working directory |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Oldpath (string) or Oldpath (string) or Oldpath (string) (Oldpath) The path of the remote file, directory, or link to rename |
required | Newpath (string) or Newpath (string) or Newpath (string) (Newpath) The new name for this file, directory, or link |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Path (string) or Path (string) or Path (string) (Path) The path of the remote file or link to remove |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]| text required | string (Text) The text to write to the remote file |
required | Path (string) or Path (string) or Path (string) (Path) The name of the remote file to open |
Mode (integer) or Mode (string) (Mode) Default: "w" Mode | |
Permissions (integer) or Permissions (null) (Permissions) File permissions as integer | |
Uid (integer) or Uid (null) (Uid) User ID | |
Gid (integer) or Gid (null) (Gid) Group ID | |
Atime (integer) or Atime (null) (Atime) Access time | |
Mtime (integer) or Mtime (null) (Mtime) Modification time | |
Encoding (string) or Encoding (null) (Encoding) Default: "utf-8" The Unicode encoding to use for data read and written to the remote file | |
Errors (string) or Errors (null) (Errors) Default: "strict" The error-handling mode if an invalid Unicode byte sequence is detected, defaulting to â strictâ which raises an exception | |
Block Size (integer) or Block Size (null) (Block Size) Default: -1 The block size to use for read and write requests | |
Max Requests (integer) or Max Requests (null) (Max Requests) Default: -1 The maximum number of parallel read or write requests | |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | File Path (string) or File Path (string) or File Path (string) (File Path) The path of the remote file the hard link should point to |
required | Link Path (string) or Link Path (string) or Link Path (string) (Link Path) The path of where to create the remote hard link |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | File Path (string) or File Path (string) or File Path (string) (File Path) The path the link should point to |
required | Link Path (string) or Link Path (string) or Link Path (string) (Link Path) The path of where to create the remote symbolic link |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Path (string) or Path (string) or Path (string) (Path) The path of the remote link to remove |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Path (string) or Path (string) or Path (string) (Path) The path of the remote file to be truncated |
| size required | integer (Size) The desired size of the file, in bytes |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]required | Path (string) or Path (string) or Path (string) (Path) Examples: path=/home/user path=testdata/new_dir Directory path on the remote host |
required | Present (boolean) or Present (null) (Present) Whether the directory should be present or not |
Permissions (integer) or Permissions (null) (Permissions) Examples: permissions=0o644 Directory permissions as integer | |
Uid (integer) or Uid (null) (Uid) User ID, user must exist on the remote host | |
Gid (integer) or Gid (null) (Gid) Group ID, user must exist on the remote host | |
Atime (integer) or Atime (null) (Atime) Examples: atime=0xDEADCAFE Access time in seconds since epoch | |
Mtime (integer) or Mtime (null) (Mtime) Examples: mtime=0xACAFEDAD Modification time in seconds since epoch | |
Group (string) or Group (null) (Group) Default: "all" Optional inventory group (defaults to 'all') | |
Name (string) or Name (null) (Name) Optional name |
[- {
- "host": "",
- "changed": false,
- "error": false,
- "value": "string"
}
]