failed: [localhost] => (item=1) => {"failed": true, "item": 1, "parsed": false}
invalid output was: Traceback (most recent call last):
File "/home/ubuntu/.ansible/tmp/ansible-tmp-1405028178.0-234314980043958/nova_compute", line 1490, in <module>
main()
File "/home/ubuntu/.ansible/tmp/ansible-tmp-1405028178.0-234314980043958/nova_compute", line 266, in main
_create_server(module, nova)
File "/home/ubuntu/.ansible/tmp/ansible-tmp-1405028178.0-234314980043958/nova_compute", line 194, in _create_server
private = [ x['addr'] for x in getattr(server, 'addresses').itervalues().next() if x['OS-EXT-IPS:type'] == 'fixed']
StopIteration
- name: Launch cluster VM on Openstack
nova_compute:
name: "{{ os_username }}_cluster1"
state: present
login_username: "{{ os_username }}"
login_tenant_name: "{{ os_tenant }}"
login_password: "{{ os_password }}"
image_id: "{{ os_image_id }}"
key_name: "{{ os_username }}_controller_key"
wait: "no"
flavor_id: "{{ os_flavor_id }}"
auth_url: "{{ os_url }}"
user_data: "#cloud-config\nmanage_etc_hosts: true"
Thanks,
-Kurt
fatal: [localhost] => lookup plugins (with_*) cannot be used with async tasks
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/32b58cdf-17cd-42c9-8ef6-dc90327e989a%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2326c06a-dec5-43b2-bd22-bb6856d14227%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a1fc1c1c-a6ca-42ab-8296-a83bf447d2c2%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/21bb9dba-6dc6-4ad6-95ed-8a99898ac953%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2949ac2a-e83e-4074-bc26-02652b90e605%40googlegroups.com.
$ cat cluster.yml
---
cluster:
- cluster1
- cluster2
- include_vars: cluster.yml
- add_host:
name: "os_api_{{ item }}"
ansible_ssh_host: 127.0.0.1
groups: os_api
ansible_connection: local
oshost: "{{ item }}"
with_items: cluster- name: Show host name debug: msg: "API connection: os_api_{{ oshost }}; Openstack host: {{ oshost }}"
- name: Launch cluster VM on Openstack nova_compute: name: "{{ os_username }}_{{ oshost }}" state: present login_username: "{{ os_username }}" login_tenant_name: "{{ os_tenant }}" login_password: "{{ os_password }}" image_id: "{{ os_image_id }}" key_name: "{{ os_username }}_controller_key" wait_for: 200 flavor_id: "{{ os_flavor_id }}" auth_url: "{{ os_url }}" user_data: "#cloud-config\nmanage_etc_hosts: true"
- name: Assign IP address to cluster VM quantum_floating_ip: state: present login_username: "{{ os_username }}" login_password: "{{ os_password }}" login_tenant_name: "{{ os_tenant }}" network_name: "{{ os_network_name }}" instance_name: "{{ os_username }}_{{ oshost }}" internal_network_name: "{{ os_internal_network_name }}" auth_url: "{{ os_url }}" register: quantum_info
- name: Wait for cluster SSH to become available wait_for: port: 22 host: "{{ quantum_info.public_ip }}" timeout: 180 state: started- name: Create cluster
hosts: os_api
gather_facts: no
roles: [instantiate] # "instantiate" is a role that includes the Openstack startup task
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/13cc7a2e-bbb5-49b6-9ab3-ac1893c36d93%40googlegroups.com.