blob: 8f0d4c1bd35b7a48fc554d2aad3038011b08d3dc [file] [log] [blame]
Sapan Bhatia7419af02014-12-19 13:24:56 -05001---
2- hosts: 127.0.0.1
3 connection: local
4 tasks:
5 - quantum_network:
Sapan Bhatia100f9972014-12-22 01:43:32 -05006 auth_url={{ endpoint }}
7 login_username={{ admin_user }}
8 tenant_name={{ tenant_name }}
Tony Mack80c42542015-01-07 12:48:37 -05009 login_tenant_name={{ tenant_name }}
Sapan Bhatia100f9972014-12-22 01:43:32 -050010 login_password={{ admin_password }}
11 name={{ name }}
12 {% if delete %}
13 state=absent
14 {% else %}
15 state=present
16 {% endif %}
Tony Mack80c42542015-01-07 12:48:37 -050017 shared=true
Sapan Bhatia7419af02014-12-19 13:24:56 -050018 - quantum_subnet:
Sapan Bhatia100f9972014-12-22 01:43:32 -050019 auth_url={{ endpoint }}
20 login_username={{ admin_user }}
21 tenant_name={{ tenant_name }}
Tony Mack80c42542015-01-07 12:48:37 -050022 login_tenant_name={{ tenant_name }}
Sapan Bhatia100f9972014-12-22 01:43:32 -050023 login_password={{ admin_password }}
24 name={{ subnet_name }}
Sapan Bhatia7419af02014-12-19 13:24:56 -050025 network_name={{ name }}
Sapan Bhatia100f9972014-12-22 01:43:32 -050026 {% if delete %}
27 state=absent
28 {% else %}
29 state=present
Sapan Bhatia6980cfd2015-01-23 16:24:42 +000030 no_gateway=true
Tony Mack80c42542015-01-07 12:48:37 -050031 cidr={{ cidr }}
Sapan Bhatia100f9972014-12-22 01:43:32 -050032 {% endif %}