mirror of
https://github.com/mtan93/Apps-Community.git
synced 2026-03-08 05:31:59 +00:00
33 lines
1.3 KiB
YAML
33 lines
1.3 KiB
YAML
- 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
|