Andy Bavier | 0f07bb3 | 2017-01-17 10:20:26 -0500 | [diff] [blame] | 1 | - name: Ensure interface config files |
| 2 | template: |
| 3 | src: templates/ethX.cfg.j2 |
| 4 | dest: /etc/network/interfaces.d/{{ item }}.cfg |
| 5 | with_items: |
| 6 | - eth2 |
| 7 | - eth3 |
| 8 | - eth4 |
| 9 | - eth5 |
| 10 | |
| 11 | - name: Ensure interfaces are up |
| 12 | command: ifup {{ item }} |
| 13 | with_items: |
| 14 | - eth2 |
| 15 | - eth3 |
| 16 | - eth4 |
| 17 | - eth5 |
| 18 | tags: |
| 19 | - skip_ansible_lint # running a sub job |
| 20 | |
| 21 | - name: Ensure fabric configuration |
| 22 | include: fabric.yml |
| 23 | when: fabric |
| 24 | |
| 25 | - name: Ensure bridge configuration |
| 26 | include: bridge.yml |
| 27 | when: not fabric |
| 28 | |