Hi Nicolas, that's an interesting failure, as all modules should work just
fine via ad-hoc mode. I'm wondering if there's some other error occurring
here, and it's simply being caught by that exception handler.

Feel free to open a Github issue for this, but in the mean time you might
want to try other options and/or ensure that what you have does not fail
when run via a playbook.

James Cammarata
Director, Ansible Core Engineering
github: jimi-c

On Tue, May 12, 2015 at 10:48 AM, Nicolas G <[email protected]> wrote:

> Hi,
>
> I would like to launch an ec2 instance the same way you can with
> chef-knife :
>
> ansible localhost -m ec2 -a "key_name=test group=qa instance_type=t2.micro
> image=ami-aecd60c7 wait=true exact_count=1 instance_tags=testing"
> --connection=local
>
> but I"m getting this error :
>
> """
>
> localhost | FAILED >> {
>
>     "failed": true,
>
>     "msg": "dictionary requested, could not parse JSON or key=value"
>
> }
>
> """
>
> is it possible to use the ec2 module with ansible adhoc or it only works
> with ansible-playbook ?
>
> --
> 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/7db8ad89-bac2-4a58-b1cb-7a0028f8454e%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/7db8ad89-bac2-4a58-b1cb-7a0028f8454e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMFyvFie_3GbUAnR6gEN-6Hnu5PfrRU%3DRK6y%2BYE2cEM4Q1wqbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to