blob: 5d1282385e9d930b123a51a735be62f0070871b4 [file] [log] [blame]
Zack Williamsafd04a82017-09-13 10:11:55 -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# teardown-onos/tasks/main.yml
17#
18# Destroys the ONOS containers
19# NOTE: ignoring errors so that incomplete builds can be removed
20
21- name: Stop and remove onos-cord containers
22 docker_service:
23 project_name: "onoscord"
24 project_src: "{{ head_onos_cord_dir }}"
25 state: absent
26 remove_images: local
27 ignore_errors: yes
28
29- name: Stop and remove onos-fabric containers
30 when: use_fabric
31 docker_service:
32 project_name: "onosfabric"
33 project_src: "{{ head_onos_fabric_dir }}"
34 state: absent
35 remove_images: local
36 ignore_errors: yes
37