I would split your inventory into groups by platform since Windows login requires a different method. For the Windows group you can configure the login method for Windows as needed to use RDP.
You could have two plays in the playbook that target the different groups in the "hosts" tag.
- name: reboot windows hosts
hosts: windows_hosts
tasks:
... do the reboots via winrm
- name: reboot linux hosts
hosts: linux_hosts
tasks:
... do the reboots via SSH
Walter
--
Walter Rowe, Division Chief
Infrastructure Services Division
Mobile:
202.355.4123