Ansible version is 1.9.2. 

Playbook:

- name: launch a compute instance
  hosts: localhost
  connection: local
  tasks:
    - name: launch a compute instance
      os_server:
          state: present
          auth:
            auth_url: "{{ lookup('env', 'OS_AUTH_URL') }}"
            username: "{{ lookup('env', 'OS_USERNAME') }}"
            password: "{{ lookup('env', 'OS_PASSWORD') }}"
            project_name: "{{ lookup('env', 'OS_TENANT_NAME') }}"
          name: test_instance
          region_name: region-b.geo-1
          availability_zone: az2
          image: 9d25fe2d-cf31-4b05-8c58-f238ec78e633
          key_name: workstation
          timeout: 200
          flavor: standard.small
          security_groups: default


Any pointers?

Thanks,
Sudeep

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/55aac43f-f2b2-406e-8a56-a61de288e372%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to