LS, I am trying to use the cloudstack set of modules with ansible 2.0

host file:
[vms]
vm01
end of host file

stip.yaml:
- hosts: all
  gather_facts: no
  tasks:
  - name: stop vm
    local_action: cs_instance name="{{ inventory_hostname }}" state=stopped
end of stop.yaml

command:
$ ansible-playbook stop.yaml -i ../inventory/vms/hosts

PLAY 
***************************************************************************

TASK [stop vm] 
*****************************************************************
fatal: [bubble05 -> localhost]: FAILED! => {"changed": false, "failed": 
true, "msg": "Template or ISO is required."}

PLAY RECAP 
*********************************************************************
bubble05                   : ok=0    changed=0    unreachable=0    failed=1

✘-2 ~/leaseweb/provisioning/ansible/bubbles [mkbubble L|…13]
12:22 $ ansible-playbook stop.yaml -i ../inventory/vms/hosts

PLAY 
***************************************************************************

TASK [stop vm] 
*****************************************************************
fatal: [vm01 -> localhost]: FAILED! => {"changed": false, "failed": true, 
"msg": "Template or ISO is required."}

PLAY RECAP 
*********************************************************************
vm01                       : ok=0    changed=0    unreachable=0    failed=1

In my interpretation of the module docs at 
http://docs.ansible.com/ansible/cs_instance_module.html the state=stopped 
would not require me to add a template or iso parameter, or does it? Or 
maybe I am missing something else?

-- 
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/8bec0ca3-4c33-4604-8166-8c0eeef0dbc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to