Windows SSH Setup
- The default shell is cmd. The docs say to change the ansible_shell_type variable if needed. This should be set as a host variable in inventory: ansible_shell_type, with value cmd or powershell.
- Add the ansible_connection host variable in inventory to indicate SSH connections. (
192.168.192.11 ansible_user=Administrator ansible_connection=ssh ansible_shell_type=cmd) - You may need to add remote_tmp in ansible.cfg and set it to C:\TEMP.
- In playbooks, use modules prefixed with
win_, or use the raw module.
