script
The script module allows you to execute a script on the target server.
Arguments
script: a string that contains the script to be executed.from_file: a string that contains the local path to the script file to be executed on the target server. (scriptandfrom_fileparameters are mutually exclusive)interpreter: a string that specifies the interpreter to use for the script. If not specified, the script will be executed using the default shell.
Usage Example
local task = {
name = "Execute a script",
komandan.modules.script({
script = "print('Hello from script')",
interpreter = "python"
})
}
komandan.komando(host, task)