- hosts: windows name: Test gather_facts: true tasks: - name: Run basic PowerShell script win_file: path: c:\lala state: directory