ansible syntax fix (
This commit is contained in:
parent
662bac2120
commit
bf7f7b618e
1 changed files with 2 additions and 2 deletions
|
@ -12,11 +12,11 @@
|
|||
|
||||
# To use direct `nova` commands construct _OS_AUTH_OPTS as:
|
||||
# --os-auth-url {{OS_AUTH_URL}} --os-username {{OS_USERNAME}} --os-password {{OS_PASSWORD}} --os-tenant-name {{OS_TENANT_NAME}} --os-tenant-id {{OS_TENANT_ID}}
|
||||
- name: get current VM status
|
||||
- name: "get current VM status"
|
||||
local_action: "shell nova --insecure {{_OS_AUTH_OPTS}} show {{inventory_hostname}} 2>/dev/null | grep status | cut -d'|' -f3 | cut -d' ' -f2"
|
||||
register: vm_status
|
||||
|
||||
- name: spinup VM: without novaclient, need to set key-pair and floating ip later
|
||||
- name: "spinup VM without novaclient, need to set key-pair and floating ip later"
|
||||
local_action: "shell nova --insecure {{_OS_AUTH_OPTS}} boot --flavor {{flavor_id}} --image {{image}} --poll {{inventory_hostname}}"
|
||||
when: vm_status.stdout != "ACTIVE"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue