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