ansible.builtin.psrp connection – Run tasks over Microsoft PowerShell Remoting Protocol
Note
This connection plugin is part of ansible-core
and included in all Ansible
installations. In most cases, you can use the short
plugin name
psrp
.
However, we recommend you use the Fully Qualified Collection Name (FQCN) ansible.builtin.psrp
for easy linking to the
plugin documentation and to avoid conflicting with other collections that may have
the same connection plugin name.
New in Ansible 2.7
Synopsis
Run commands or put/fetch on a target via PSRP (WinRM plugin)
This is similar to the ansible.builtin.winrm connection plugin which uses the same underlying transport but instead runs in a PowerShell interpreter.
Requirements
The below requirements are needed on the local controller node that executes this connection.
pypsrp>=0.4.0, <1.0.0 (Python library)
Parameters
Parameter |
Comments |
---|---|
The authentication protocol to use when authenticating the remote user. The default, Choices:
Configuration:
|
|
The path to a PEM certificate chain to use when validating the server’s certificate. This value is ignored if Configuration:
|
|
Whether to validate the remote server’s certificate or not. Set to
Choices:
Configuration:
|
|
The local path to an X509 certificate key to use with certificate auth. Configuration:
|
|
The local path to an X509 certificate to use with certificate auth. Configuration:
|
|
The name of the PowerShell configuration endpoint to connect to. Default: Configuration:
|
|
The connection timeout for making the request to the remote host. This is measured in seconds. Default: Configuration:
|
|
The sub authentication mechanism to use with CredSSP auth. When Choices:
Configuration:
|
|
Disables the use of TLSv1.2 on the CredSSP authentication channel. This should not be set to Choices:
Configuration:
|
|
The minimum CredSSP server authentication version that will be accepted. Set to Default: Configuration:
|
|
Will disable any environment proxy settings and connect directly to the remote host. This option is ignored if Choices:
Configuration:
|
|
Sets the maximum size of each WSMan message sent to the remote host. This is measured in bytes. Defaults to Default: Configuration:
|
|
Controls the message encryption settings, this is different from TLS encryption when Only the auth protocols
Choices:
Configuration:
|
|
Allow the remote user the ability to delegate it’s credentials to another server, i.e. credential delegation. Only valid when Kerberos was the negotiated auth or was explicitly set as the authentication. Ignored when NTLM was the negotiated auth. Choices:
Configuration:
|
|
Override the remote hostname when searching for the host in the Kerberos lookup. This allows Ansible to connect over IP but authenticate with the remote server using it’s DNS name. Only valid when Kerberos was the negotiated auth or was explicitly set as the authentication. Ignored when NTLM was the negotiated auth. Configuration:
|
|
Send the Channel Binding Token (CBT) structure when authenticating. CBT is used to provide extra protection against Man in the Middle CBT is not used when using just Choices:
Configuration:
|
|
Override the service part of the SPN used during Kerberos authentication. Only valid when Kerberos was the negotiated auth or was explicitly set as the authentication. Ignored when NTLM was the negotiated auth. Default: Configuration:
|
|
Sets the WSMan timeout for each operation. This is measured in seconds. This should not exceed the value for Default: Configuration:
|
|
The URI path to connect to. Default: Configuration:
|
|
Pipelining reduces the number of connection operations required to execute a module on the remote server, by executing many Ansible modules without actual file transfers. This can result in a very significant performance improvement when enabled. However this can conflict with privilege escalation ( Choices:
Configuration:
|
|
The port for PSRP to connect on the remote target. Default is Configuration:
|
|
Set the proxy URL to use when connecting to the remote host. Configuration:
|
|
The read timeout for receiving data from the remote host. This value must always be greater than This option requires pypsrp >= 0.3. This is measured in seconds. Default: Configuration:
|
|
The backoff time to use in between reconnection attempts. (First sleeps X, then sleeps 2*X, then sleeps 4*X, …) This is measured in seconds. The Default: Configuration:
|
|
The number of retries on connection errors. Default: Configuration:
|
|
The hostname or IP address of the remote host. Default: Configuration:
|
|
Authentication password for the Configuration:
|
|
The user to log in as. Configuration:
|