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 ?