ansible.builtin.powershell – Windows PowerShell¶
This module is part of
ansible-base and included in all Ansible
installations. In most cases, you can use the short module name
powershell even without specifying the
Despite that, we recommend you use the FQCN for easy linking to the module
documentation and to avoid conflicting with other collections that may have
the same module name.
The only option when using ‘winrm’ or ‘psrp’ as a connection plugin.
Can also be used when using ‘ssh’ as a connection plugin and the
DefaultShellhas been configured to PowerShell.