diff --git a/defaults/main.yml b/defaults/main.yml index 0077dfe..b8bdf18 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,2 +1,3 @@ --- win_obs_szene__project: 'default' +win_obs_szene_files: [] diff --git a/tasks/directory.yml b/tasks/directory.yml index a42810e..7413c9b 100644 --- a/tasks/directory.yml +++ b/tasks/directory.yml @@ -1,5 +1,5 @@ --- - name: create folder for obs szene ansible.windows.win_file: - path: "C:\obs\{{ win_obs_szene__project }}" + path: 'C:\obs\{{ win_obs_szene__project }}' state: directory diff --git a/tasks/files.yml b/tasks/files.yml new file mode 100644 index 0000000..d7e47fc --- /dev/null +++ b/tasks/files.yml @@ -0,0 +1,6 @@ +--- +- name: download defined files + ansible.windows.win_get_url: + url: '{{ item.src }}' + dest: 'C:\obs\{{ win_obs_szene__project }}\{{ item.file }}' + with_items: '{{ win_obs_szene_files }}' diff --git a/tasks/main.yml b/tasks/main.yml index d3be8d7..8580cf6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,3 +1,6 @@ --- - name: setup directory ansible.builtin.include_tasks: directory.yml + +- name: download files from web + ansible.builtin.include_tasks: files.yml