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 | - 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 | |