commit | 5af9191ea3493f87889a5404cb20823f5ce4d37d | [log] [tgz] |
---|---|---|
author | Zack Williams <zdw@artisancomputer.com> | Sun May 01 06:34:16 2016 -0700 |
committer | Zack Williams <zdw@artisancomputer.com> | Sun May 01 06:34:16 2016 -0700 |
tree | ed69954c159b25815679baed4afcc3dfa2b7e5d5 | |
parent | 314559b18379c002394c55584043b39edd63dc67 [diff] |
fix vars and playbook for simulate-fabric
diff --git a/roles/simulate-fabric/files/simulate-fabric-playbook.yml b/roles/simulate-fabric/files/simulate-fabric-playbook.yml index 60359a3..9ff2345 100644 --- a/roles/simulate-fabric/files/simulate-fabric-playbook.yml +++ b/roles/simulate-fabric/files/simulate-fabric-playbook.yml
@@ -17,7 +17,7 @@ - bridge-utils - name: Create bridges - when: "ansible_interfaces[item.name] is not defined" + when: "ansible_{{ item.name }} is not defined" command: brctl addbr "{{ item.name }}" with_items: "{{ simfabric_bridges }}"
diff --git a/roles/simulate-fabric/templates/simulate-fabric-vars.yml.j2 b/roles/simulate-fabric/templates/simulate-fabric-vars.yml.j2 index 84a74b7..b129297 100644 --- a/roles/simulate-fabric/templates/simulate-fabric-vars.yml.j2 +++ b/roles/simulate-fabric/templates/simulate-fabric-vars.yml.j2
@@ -1,6 +1,8 @@ --- -simfabric_bridges: {{ simfabric_bridges | to_yaml }} +simfabric_bridges: +{{ simfabric_bridges | to_nice_yaml }} -simfabric_interfaces: {{ simfabric_interfaces | to_yaml }} +simfabric_interfaces: +{{ simfabric_interfaces | to_nice_yaml }}