--- - name: Create folder for obs szene ansible.windows.win_file: path: '{{ item }}' state: directory with_items: - '{{ win_streamdeck__root }}' - '{{ win_streamdeck__root }}\streamdeck' - name: Create additional dirs ansible.windows.win_file: path: '{{ win_streamdeck__root }}\streamdeck\{{ item }}' state: directory with_items: '{{ win_streamdeck__dirs }}' when: win_streamdeck__dirs | length>0