blob: 60854347692de41664f9fe78c0fea85daaa75c54 [file] [log] [blame]
Sapan Bhatiad8e129a2014-11-19 15:26:11 -05001---
2- hosts: 127.0.0.1
Sapand3e96172014-12-03 01:27:56 -05003 connection: local
4 tasks:
5 - nova_keypair:
6 state: present
7 auth_url: {{ endpoint }}
8 login_username: {{ admin_user }}
9 login_password: {{ admin_password }}
10 login_tenant_name: {{ admin_tenant }}
11 name: {{ key_name }}
12 public_key: "{{ key.public_key}}"
Sapan Bhatiad8e129a2014-11-19 15:26:11 -050013
Sapand3e96172014-12-03 01:27:56 -050014 - nova_compute:
15 state: present
16 auth_url: {{ endpoint }}
17 login_username: {{ admin_user }}
18 login_password: {{ admin_password }}
19 login_tenant_name: {{ admin_tenant }}
20 availability_zone: {{ availability_zone }}
21 name: {{ name }}
22 image_id: {{ image_id }}
23 key_name: {{ key_name }}
24 wait_for: 200
25 flavor_id: {{ flavor_id }}
26 user_data: "{{ user_data }}"
27 nics:
28 {% for net in nics %}
29 - net-id: {{ net }}
30 {% endfor %}
Sapan28b9c432014-12-03 00:03:56 -050031
Sapand3e96172014-12-03 01:27:56 -050032 {% if meta %}
33 meta:
34 {% for k,v in meta.items() %}
35 {{ k }} : "{{ v }}"
36 {% endfor %}
37 {% endif %}