init(into:from:env:ignoreFailure:retry:executionTimeout:)
Transfers a file from the host where this is run to the destination host.
init(into: String, from: URL, env: [String : String]? = nil, ignoreFailure: Bool = false, retry: Backoff = .never, executionTimeout: Duration = .seconds(30))
Parameters
- into
The destination path on the remote host.
- from
The URL from which to copy the file.
- env
An optional dictionary of environment variables the system sets when the engine runs the the command.
- ignoreFailure
A Boolean value that indicates whether a failing command should fail a playbook.
- retry
The retry settings for the command.
- executionTimeout
The maximum duration to allow for the command.