launching VM in openstack throws shade error

20 views
Skip to first unread message

Shabari Nath

unread,
Jul 21, 2016, 4:24:50 PM7/21/16
to Ansible Project
i have tried launching a VM in openstack env with os_server module. When i execute the playbook it throws following error:

fatal: [vsilmasv24-vzbi-com]: FAILED! => {"changed": false, "failed": true, "msg": "shade is required for this module"}

Please help me.

my playbook:
---
- hosts: controller
  sudo: true
  gather_facts: yes
  tasks:
  - name: 'set auth'
    os_server:
       state: present
       auth:
         auth_url: http://166.44.165.157:5000
         username: admin
         password: Keystone2018
         user_id: admin
         project_name: admin
         tenant_name: admin
       name: vm1
       image: 43c66e91-fc48-4272-a416-64fb94ac9720
       timeout: 200
       flavor: 4
       nics:
         - net-id: 511a922a-ca22-4a4f-99bf-e67207133444
         - net-name: vsil-ext-net

Reply all
Reply to author
Forward
0 new messages