blob: 6b18fdac8c3ba5472355fae401e4910f33887ad6 [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 Bhatia78b79e72015-05-09 18:16:24 +020018 {% if not delete %}
Sapan Bhatia7419af02014-12-19 13:24:56 -050019 - quantum_subnet:
Sapan Bhatia100f9972014-12-22 01:43:32 -050020 auth_url={{ endpoint }}
21 login_username={{ admin_user }}
22 tenant_name={{ tenant_name }}
Tony Mack80c42542015-01-07 12:48:37 -050023 login_tenant_name={{ tenant_name }}
Sapan Bhatia100f9972014-12-22 01:43:32 -050024 login_password={{ admin_password }}
25 name={{ subnet_name }}
Sapan Bhatia7419af02014-12-19 13:24:56 -050026 network_name={{ name }}
Sapan Bhatia100f9972014-12-22 01:43:32 -050027 {% if delete %}
28 state=absent
29 {% else %}
30 state=present
Sapan Bhatia6980cfd2015-01-23 16:24:42 +000031 no_gateway=true
Scott Baker7ea40ce2015-07-20 17:25:20 -070032 dns_nameservers=8.8.8.8
Tony Mack80c42542015-01-07 12:48:37 -050033 cidr={{ cidr }}
Sapan Bhatia100f9972014-12-22 01:43:32 -050034 {% endif %}
Sapan Bhatia78b79e72015-05-09 18:16:24 +020035 {% endif %}