blob: 9b42ea61150ee0c4b2f19f636ad7e34f7edb09a7 [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
Tony Mackdd8746b2015-01-07 12:48:37 -050030 cidr={{ cidr }}
Sapan Bhatiae1527172014-12-22 01:43:32 -050031 {% endif %}