blob: 60359a3457144b4f11e48787d5005319bda6ec42 [file] [log] [blame]
Zack Williams0e583122016-04-30 16:57:03 -07001---
2- hosts: nova-compute-1
3 remote_user: ubuntu
4 become: yes
5
6 tasks:
7 - name: Include configuration vars
8 include_vars: simulate-fabric-vars.yml
9
10 - name: Install prerequisites
11 apt:
12 name={{ item }}
13 update_cache=yes
14 cache_valid_time=3600
15 become: yes
16 with_items:
17 - bridge-utils
18
19 - name: Create bridges
20 when: "ansible_interfaces[item.name] is not defined"
21 command: brctl addbr "{{ item.name }}"
22 with_items: "{{ simfabric_bridges }}"
23