blob: c965baab05315e1e0d6ea67b5d8bda8987b5c496 [file] [log] [blame]
Matteo Scandolo25b23e32017-12-11 17:01:36 -08001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16---
17# start-xos-playbook.yml
18# Start and configure XOS docker containers
19
20- name: Include vars
21 hosts: all
22 tasks:
23 - name: Include variables
24 include_vars: "{{ item }}"
25 with_items:
26 - "profile_manifests/{{ cord_profile }}.yml"
27 - profile_manifests/local_vars.yml
28 - name: Store service name
29 set_fact:
30 service_name: "{{ service_name }}"
31 service_dir: "{{ service_dir }}"
32 - debug:
33 msg: "The service name is: {{ service_name }} and the service directory is {{ service_dir }}"
34
35- name: Generate docker-compose.yml for service
36 hosts: head
37 roles:
38 - xos-services-config
39