ERROR: os_server is not a legal parameter in an Ansible task or handler

227 views
Skip to first unread message

Sudeep Deshpande

unread,
Aug 24, 2015, 10:32:02 PM8/24/15
to Ansible Project
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

Brian Coca

unread,
Aug 24, 2015, 10:34:25 PM8/24/15
to Ansible Project
The docs (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.

--
Brian Coca
Reply all
Reply to author
Forward
0 new messages