Windows support is new to Ansible and as such, there aren't many modules available for it. Modules that are windows only are named beginning with
win_. There are also a few modules available, which work on both Windows and Unix systems such as the
slurp module, which we covered earlier.
Extra care should be taken in Windows modules to quote the path strings. Backslashes are an important character in both YAML, where they escape characters and in windows paths, where they denote directories. Because of this, YAML might confuse parts of our paths for escape sequences. To prevent this, we use single quotes on our strings. Additionally, if our path is a directory itself, we should leave off the trailing backspace so that YAML ...