Skip to content

Windows Server Windows Server: Files

Summary

This module contains actions for transferring files to & from a Windows Server.

Actions

windows_server.files.

upload_file

Upload a file from the PPA task container to a Windows Server.

This operation will overwrite any existing file with the same destination path.

Input
  • windows_server: a WindowsServer

  • source: path of the local file to be uploaded

  • destination: destination path on the Windows Server

  • configuration_name: optional PowerShell configuration endpoint to use when uploading the file

Output

Nothing is outputted by this action.

Example
1
2
3
4
5
- windows_server.files.upload_file:
    source: "./report.csv"
    destination: "C:\Users\example.user\report.csv"
  load:
    windows_server: windows_server