mirror of
https://github.com/mtan93/Apps-Community.git
synced 2026-04-06 06:13:08 +01:00
add _core files
This commit is contained in:
32
apps/_downloaders.yml
Normal file
32
apps/_downloaders.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
- name: Creating download paths
|
||||
file: 'path={{item}} state=directory mode=0775 owner=1000 group=1000'
|
||||
with_items:
|
||||
- '{{path.stdout}}/downloads/{{pgrole}}'
|
||||
- '{{path.stdout}}/downloads/{{pgrole}}/tv'
|
||||
- '{{path.stdout}}/downloads/{{pgrole}}/movies'
|
||||
- '{{path.stdout}}/downloads/{{pgrole}}/music'
|
||||
- '{{path.stdout}}/downloads/{{pgrole}}/ebooks'
|
||||
- '{{path.stdout}}/downloads/{{pgrole}}/abooks'
|
||||
|
||||
- name: Creating incomplete paths
|
||||
file: 'path={{item}} state=directory mode=0775 owner=1000 group=1000'
|
||||
with_items:
|
||||
- '{{path.stdout}}/incomplete/{{pgrole}}'
|
||||
- '{{path.stdout}}/incomplete/{{pgrole}}/tv'
|
||||
- '{{path.stdout}}/incomplete/{{pgrole}}/movies'
|
||||
- '{{path.stdout}}/incomplete/{{pgrole}}/music'
|
||||
- '{{path.stdout}}/incomplete/{{pgrole}}/ebooks'
|
||||
- '{{path.stdout}}/incomplete/{{pgrole}}/abooks'
|
||||
when: incomplete.stdout | length == 0
|
||||
|
||||
- name: Creating incomplete paths
|
||||
file: 'path={{item}} state=directory mode=0775 owner=1000 group=1000'
|
||||
with_items:
|
||||
- '{{incomplete.stdout}}/{{pgrole}}'
|
||||
- '{{incomplete.stdout}}/{{pgrole}}/tv'
|
||||
- '{{incomplete.stdout}}/{{pgrole}}/movies'
|
||||
- '{{incomplete.stdout}}/{{pgrole}}/music'
|
||||
- '{{incomplete.stdout}}/{{pgrole}}/ebooks'
|
||||
- '{{incomplete.stdout}}/{{pgrole}}/abooks'
|
||||
when: incomplete.stdout | length > 0
|
||||
ignore_errors: yes
|
||||
Reference in New Issue
Block a user