Documentation

powershell - Windows Powershell

Synopsis

  • The only option when using ‘winrm’ as a connection plugin

Parameters

Parameter
Choices/Defaults
Configuration
Comments
admin_users
Default:
[]
List of users to be expected to have admin privileges, this is unused in the PowerShell plugin
environment
Default:
{}
Dictionary of environment variables and their values to use when executing commands.
remote_tmp
Default:
%TEMP%
ini entries:

[powershell ]
remote_tmp = %TEMP%

var: ansible_remote_tmp
Temporary directory to use on targets when copying files to the host.
set_module_language
    Choices:
  • no ←
  • yes
Controls if we set the locale for moduels when executing on the target.
Windows only supports no as an option.

Status

Author

  • UNKNOWN

Hint

If you notice any issues in this documentation you can edit this document <https://github.com/ansible/ansible/edit/devel/lib/ansible/plugins/shell/powershell.py_ to improve it.