blob: 5f45d5c506989efd554b7d1950e2ba74fad5f98d [file] [log] [blame]
Sapan Bhatiae3556152014-11-19 15:26:11 -05001---
2- hosts: 127.0.0.1
3 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}}"
13
14 - 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 name: {{ name }}
21 image_id: {{ image_id }}
22 key_name: {{ key_name }}
23 wait_for: 200
24 flavor_id: {{ flavor_id }}
25 user_data: "{{ user_data }}"
26 nics:
27 {% for net in nics %}
28 - net-id: {{ net }}
29 {% endfor %}
30
31 {% if meta %}
32 meta:
33 {% for k,v in meta.items() %}
34 {{ k }} : "{{ v }}"
35 {% endfor %}
36 {% endif %}