write image as name instead of id
This commit is contained in:
parent
b6df57c85a
commit
e1e3ff5e93
2 changed files with 4 additions and 3 deletions
|
@ -1,7 +1,8 @@
|
|||
---
|
||||
instance_type: m1.xlarge
|
||||
image: "{{ f20_qcow_id }}"
|
||||
keypair: fedora-admin-20130801
|
||||
#image: "{{ f20_qcow_id }}"
|
||||
image: "Fedora-Cloud-Base-20141203-21"
|
||||
keypair: msuchy
|
||||
security_group: web-80-anywhere-persistent,web-443-anywhere-persistent,ssh-anywhere-persistent,default
|
||||
zone: nova
|
||||
hostbase: copr-be-dev-
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
login_password: "{{ADMIN_PASS}}"
|
||||
login_tenant_name: "{{inventory_tenant}}"
|
||||
name: "{{inventory_instance_name}}"
|
||||
image_id: "{{ image }}"
|
||||
image_id: "{{ image|image_name_to_id('admin', ADMIN_PASS, inventory_tenant, os_auth_url) }}"
|
||||
wait_for: 300
|
||||
flavor_id: "{{ instance_type|flavor_name_to_id('admin', ADMIN_PASS, inventory_tenant, os_auth_url) }}
|
||||
security_groups: "{{security_group}}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue