blob: e7d870618e0e6253b0ff829e3706c509e53bd0db [file] [log] [blame]
Samuli Silviusbf6776c2019-03-25 18:46:24 +02001---
2- name: Check repositories
3 stat:
4 path: "{{ item }}"
5 loop: "{{ docker_needed_repos + [offline_repo_file] }}"
6 register: repos
7
8- name: Set fact for offline repos created
9 set_fact:
10 offline_repo_created: "{{ (repos.results | map(attribute='stat.exists') | list) is all }}"
11
12- debug:
13 var: offline_repo_created
14
15- name: Enable repos back (if package-repository role already setup offline onap repo) for molecule testing purposes to install docker
16 include_tasks: enable-repos.yml
17 when: offline_repo_created
18
19- name: Prepare docker repos normally
20 include_tasks: prepare-docker-repos.yml
21 when: not offline_repo_created