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 | |
| 9 | - name: Ensure interfaces are up |
| 10 | command: ifup {{ item }} |
| 11 | with_items: |
| 12 | - eth2 |
| 13 | - eth3 |
| 14 | tags: |
| 15 | - skip_ansible_lint # running a sub job |
| 16 | |
| 17 | - name: Ensure fabric configuration |
| 18 | include: fabric.yml |
| 19 | when: fabric |
| 20 | |
| 21 | - name: Ensure bridge configuration |
| 22 | include: bridge.yml |
| 23 | when: not fabric |
| 24 | |