|
|
|
@@ -10,14 +10,28 @@ |
|
|
|
with_items: |
|
|
|
- path: "{{ matrix_media_repo_base_path }}" |
|
|
|
when: true |
|
|
|
- path: "{{ matrix_media_repo_config_path }}" |
|
|
|
when: true |
|
|
|
- path: "{{ matrix_media_repo_data_path }}" |
|
|
|
when: true |
|
|
|
- path: "{{ matrix_media_repo_docker_src_files_path }}" |
|
|
|
when: "{{ matrix_media_repo_container_image_self_build }}" |
|
|
|
when: "item.when | bool" |
|
|
|
|
|
|
|
- name: Ensure media-repo support files installed |
|
|
|
ansible.builtin.template: |
|
|
|
src: "{{ role_path }}/templates/media-repo/{{ item }}.j2" |
|
|
|
dest: "{{ matrix_media_repo_base_path }}/{{ item }}" |
|
|
|
mode: 0640 |
|
|
|
owner: "{{ matrix_user_username }}" |
|
|
|
group: "{{ matrix_user_groupname }}" |
|
|
|
with_items: |
|
|
|
- env |
|
|
|
|
|
|
|
- name: Ensure media-repo configuration installed |
|
|
|
ansible.builtin.template: |
|
|
|
src: "{{ role_path }}/templates/media-repo/media-repo.yaml.j2" |
|
|
|
dest: "{{ matrix_media_repo_base_path }}/media-repo.yaml" |
|
|
|
dest: "{{ matrix_media_repo_config_path }}/media-repo.yaml" |
|
|
|
mode: 0640 |
|
|
|
owner: "{{ matrix_user_username }}" |
|
|
|
group: "{{ matrix_user_groupname }}" |
|
|
|
|