Matteo Scandolo | 60b640f | 2017-08-08 13:05:22 -0700 | [diff] [blame] | 1 | |
| 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 Bavier | 0f07bb3 | 2017-01-17 10:20:26 -0500 | [diff] [blame] | 17 | - 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 | |
| 25 | - name: Ensure interfaces are up |
| 26 | command: ifup {{ item }} |
| 27 | with_items: |
| 28 | - eth2 |
| 29 | - eth3 |
| 30 | tags: |
| 31 | - skip_ansible_lint # running a sub job |
| 32 | |
| 33 | - name: Ensure fabric configuration |
| 34 | include: fabric.yml |
| 35 | when: fabric |
| 36 | |
| 37 | - name: Ensure bridge configuration |
| 38 | include: bridge.yml |
| 39 | when: not fabric |
| 40 | |