Run commands and shell snippets on the remote hosts
Run executables on the remote hosts
Run shell scripts on the remote hosts
(shell options)
options
A hashmap of options. All available keys and their values are described below
Option | Description |
---|---|
:cmd required true type string | The command or shell snippet to run |
:shell type string | Specify the shell to use to run the command. Default is |
:stdin required true type string | Supply a string argument to pass to the executing script as its standard input |
:dir type string | Execute the command from within the specified directory. Path can be relative or absolute. Relative paths are specified in relation to the users home directory. Default |
:out type string | Specify the encoding of the commands output. Default is "UTF-8". |
:env type hashmap | Specify a hashmap of environment variables to set before executing the command. Environment variable names can be specified as keywords or strings. |
:creates type vector list lazy-seq | Specify a list of files that the command will create. If these files exist on the remote host, the command will not be executed and the job execution will be marked as |
:ok-exit required true type function set | a callable that will be passed the shell exit code. If it returns true, the job is marked as |
:changed-exit required true type function set | a callable that will be passed the shell exit code. If it returns true the job is marked as Note: :changed-exit is checked after :ok-exit. If both return false, the job is marked as |