David K. Bainbridge | 6f2cbe7 | 2016-08-19 15:48:07 -0700 | [diff] [blame] | 1 | - name: Bridge Support is Present |
| 2 | apt: |
| 3 | name: bridge-utils |
| 4 | force: yes |
| 5 | tags: [prod] |
| 6 | |
| 7 | - name: Ensure Management Bridge |
| 8 | copy: |
| 9 | src: mgmtbr.cfg |
| 10 | dest: /etc/network/interfaces.d/mgmtbr.cfg |
| 11 | owner: root |
| 12 | group: root |
| 13 | mode: 0644 |
| 14 | |
| 15 | - name: Ensure Management Bridge Up |
| 16 | command: ifup mgmtbr |
David K. Bainbridge | f5ffb0d | 2016-11-04 16:14:54 +0100 | [diff] [blame] | 17 | changed_when: true |
David K. Bainbridge | 6f2cbe7 | 2016-08-19 15:48:07 -0700 | [diff] [blame] | 18 | |
Andy Bavier | 0f07bb3 | 2017-01-17 10:20:26 -0500 | [diff] [blame] | 19 | - name: Ensure fabric bridge |
| 20 | copy: |
| 21 | src: fabric.cfg |
| 22 | dest: /etc/network/interfaces.d/fabric.cfg |
| 23 | owner: root |
| 24 | group: root |
| 25 | mode: 0644 |
| 26 | |
| 27 | - name: Ensure fabric bridge |
| 28 | command: ifup {{ item }} |
| 29 | changed_when: true |
| 30 | with_items: |
| 31 | - fabric |
| 32 | - fabric:0 |
| 33 | - fabric:1 |