blob: 5cabc782b8becd0f0468ff2e8e5d4d979251ffdf [file] [log] [blame]
Scott Bakerb63ea792016-08-11 10:24:48 -07001---
2- hosts: {{ instance_name }}
3 gather_facts: False
4 connection: ssh
5 user: {{ username }}
6 sudo: yes
7
8 vars:
9 container_name: {{ container_name }}
10 docker_image: {{ docker_image }}
11 ports:
12 {% for port in ports %}
13 - device: {{ port.device }}
14 xos_network_id: {{ port.xos_network_id }}
15 mac: {{ port.mac|default("") }}
16 ip: {{ port.ip }}
17 snoop_instance_mac: {{ port.snoop_instance_mac }}
18 snoop_instance_id: {{ port.snoop_instance_id }}
19 parent_mac: {{ port.parent_mac|default("") }}
20 s_tag: {{ port.s_tag|default("") }}
21 c_tag: {{ port.c_tag|default("") }}
22 next_hop: {{ port.next_hop|default("") }}
23 bridge: {{ port.bridge }}
24 {% endfor %}
25 volumes:
26 {% for volume in volumes %}
27 - {{ volume }}
28 {% endfor %}
29
30 tasks:
31 - name: Make sure container is stopped
32 service: name=container-{{ container_name }} state=stopped
33