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