ansible.builtin.powershell – Windows PowerShell¶
Note
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 collections:
keyword.
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.
Synopsis¶
- 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
DefaultShell
has been configured to PowerShell.