win_ansible_role_streamdeck/tasks/directory.yml

15 lines
432 B
YAML

---
- 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