In this post, I will show you how to create a directory on a CIFS shared folder hosted on the Windows machine
This task can be achieved by configuring the WinRM listener on the Windows machine. In the playbook, we will communicate with the listener using CredSSP. The TCP port is defined on 5986 (WinRM default port for HTTPS listener)
You can find here a documentation on how to configure this WinRM listener
- hosts: myWindowsNode
- name: create the folder called "TheNewFolder"