blob: fed7cbb0788074239e601e71e877bbc240ea6a13 [file] [log] [blame]
Matteo Scandolof0441032017-08-08 13:05:26 -07001
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
Scott Bakerb63ea792016-08-11 10:24:48 -070017---
18- hosts: {{ instance_name }}
19 gather_facts: False
20 connection: ssh
21 user: {{ username }}
22 sudo: yes
23
24 vars:
25 container_name: {{ container_name }}
26 docker_image: {{ docker_image }}
27 ports:
28 {% for port in ports %}
29 - device: {{ port.device }}
30 xos_network_id: {{ port.xos_network_id }}
31 mac: {{ port.mac|default("") }}
32 ip: {{ port.ip }}
33 snoop_instance_mac: {{ port.snoop_instance_mac }}
34 snoop_instance_id: {{ port.snoop_instance_id }}
35 parent_mac: {{ port.parent_mac|default("") }}
36 s_tag: {{ port.s_tag|default("") }}
37 c_tag: {{ port.c_tag|default("") }}
38 next_hop: {{ port.next_hop|default("") }}
39 bridge: {{ port.bridge }}
40 {% endfor %}
41 volumes:
42 {% for volume in volumes %}
43 - {{ volume }}
44 {% endfor %}
45
46 tasks:
47 - name: Make sure container is stopped
48 service: name=container-{{ container_name }} state=stopped
49