blob: 13c0f2d1303a9791b0362cb057cb6556d2cd0ca5 [file] [log] [blame]
Matteo Scandolo25b23e32017-12-11 17:01:36 -08001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15- name: Inizialize docker-compose.yml list
16 set_fact:
17 onboarding_recipes: ['docker-compose.yml']
18- name: Read docker-compose.yml files for services
19 find:
20 paths: "{{ head_cord_profile_dir }}/dynamic_load/"
21 patterns: '*docker-compose.yml'
22 register: onboarding_recipes_files
23- name: Add docker-compose.yml files for services to the list
24 set_fact:
25 onboarding_recipes: "{{ onboarding_recipes }} + ['{{ item.path }}']"
26 with_items: "{{ onboarding_recipes_files.files }}"
27- debug:
28 var: onboarding_recipes