# ERROR: os\_server is not a legal parameter in an Ansible task or handler

**URL:** <https://forum.ansible.com/t/error-os-server-is-not-a-legal-parameter-in-an-ansible-task-or-handler/19104>\
**Category:** Ansible Project\
**Created:** [August 25, 2015, 2:00am UTC](https://forum.ansible.com/t/error-os-server-is-not-a-legal-parameter-in-an-ansible-task-or-handler/19104 "2015-08-25T02:00:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sudeep\_Deshpande](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@Sudeep\_Deshpande](https://forum.ansible.com/u/Sudeep_Deshpande)\
**Post date:** [August 25, 2015, 2:00am UTC](https://forum.ansible.com/t/error-os-server-is-not-a-legal-parameter-in-an-ansible-task-or-handler/19104/1 "2015-08-25T02:00:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [August 25, 2015, 2:34am UTC](https://forum.ansible.com/t/error-os-server-is-not-a-legal-parameter-in-an-ansible-task-or-handler/19104/2 "2015-08-25T02:34:22Z")

</div>

The docs ([http://docs.ansible.com/ansible/os\_server\_module.html](http://docs.ansible.com/ansible/os_server_module.html)) show  
its new in 2.0, since you are running 1.9.2, the error seems  
appropriate.
