Additional folder mechanism

This commit is contained in:
L3D 2022-02-22 22:12:16 +01:00
parent 346a7be759
commit 11a7510966
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 13 additions and 2 deletions

View file

@ -1,5 +1,9 @@
---
win_obs_szene__project: 'default'
win_obs_szene_files: []
# - src: https://example.com/foo,pnf'
# file: foo.pnd
# - src: https://example.com/foo.pdf'
# file: foo.pdf
# - src: https://example.com/bar.png'
# file: folder1\bar.png
win_obs_additional_dirs: []
# - folder1

View file

@ -3,3 +3,10 @@
ansible.windows.win_file:
path: 'C:\obs\{{ win_obs_szene__project }}'
state: directory
- name: create additional dirs
ansible.windows.win_file:
path: 'C:\obs\{{ win_obs_szene__project }}\{{ item }}'
state: directory
with_items: '{{ win_obs_additional_dirs }}'
when: win_obs_additional_dirs | length>0