blob: 15925d6c4d629f8da8a2258482aa99ace3f9d5a7 [file] [log] [blame]
Matteo Scandolo60b640f2017-08-08 13:05:22 -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
Andy Bavier0f07bb32017-01-17 10:20:26 -050017- name: Ensure interface config files
18 template:
19 src: templates/ethX.cfg.j2
20 dest: /etc/network/interfaces.d/{{ item }}.cfg
21 with_items:
22 - eth2
23 - eth3
24 - eth4
25 - eth5
26
27- name: Ensure interfaces are up
28 command: ifup {{ item }}
29 with_items:
30 - eth2
31 - eth3
32 - eth4
33 - eth5
34 tags:
35 - skip_ansible_lint # running a sub job
36
37- name: Ensure fabric configuration
38 include: fabric.yml
39 when: fabric
40
41- name: Ensure bridge configuration
42 include: bridge.yml
43 when: not fabric
44